Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
share :: (Typeable a, Typeable f) => Shareable f a -> Shared f a Source
Share/memoize a class member of type f a
.
unsafeAccess :: Shared f a -> Shareable f a Source
Should only be used to access class members. A safe wrapper should be defined for every shared class member. Direct access can lead to overriding class member definitions.
unsafeNewRef :: () -> Ref Source