File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ import Unsafe.Coerce (unsafeCoerce)
64
64
-- | `Object a` represents a homogeneous JS Object with values of type `a`.
65
65
foreign import data Object :: Type -> Type
66
66
67
+ type role Object representational
68
+
67
69
foreign import _copyST :: forall a b r . a -> ST r b
68
70
69
71
-- | Convert an immutable Object into a mutable Object
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import Data.Maybe (Maybe(..))
24
24
-- | that of `Object a`, except that mutation is allowed.
25
25
foreign import data STObject :: Region -> Type -> Type
26
26
27
+ type role STObject nominal representational
28
+
27
29
-- | Create a new, empty mutable object
28
30
foreign import new :: forall a r . ST r (STObject r a )
29
31
You can’t perform that action at this time.
0 commit comments