| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.ClassSharing
Synopsis
Documentation
share :: (Typeable a, Typeable f) => Shareable f a -> Shared f a #
Share/memoize a class member of type f a.
unsafeAccess :: Shared f a -> Shareable f a #
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.
A dynamic map with type safe insertion and lookup.
unsafeNewRef :: () -> Ref #