Skip to content

Commit

Permalink
Merge pull request #420 from input-output-hk/tdammers/bls-affine-nominal
Browse files Browse the repository at this point in the history
Prevent BLS Affine values from being coerced.
  • Loading branch information
lehins authored Jun 28, 2023
2 parents cb31fe9 + 78e5d3f commit 3bd707e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ type Point2 = Point Curve2

newtype Affine curve = Affine (ForeignPtr Void)

-- Making sure different 'Affine's are not 'Coercible', which would ruin the
-- intended type safety:
type role Affine nominal

type Affine1 = Affine Curve1
type Affine2 = Affine Curve2

Expand Down

0 comments on commit 3bd707e

Please sign in to comment.