Skip to content

Commit 3e39f60

Browse files
committed
Add roles declarations to allow safe coercions
1 parent d69806e commit 3e39f60

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Data/Lazy.purs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import Data.TraversableWithIndex (class TraversableWithIndex)
2929
-- | `Lazy` values can be evaluated by using the `force` function.
3030
foreign import data Lazy :: Type -> Type
3131

32+
type role Lazy representational
33+
3234
-- | Defer a computation, creating a `Lazy` value.
3335
foreign import defer :: forall a. (Unit -> a) -> Lazy a
3436

0 commit comments

Comments
 (0)