Safe Haskell | None |
---|---|
Language | Haskell2010 |
Orphan instances for the RIO
data type.
- class HasResourceMap env where
- type ResourceMap = IORef ReleaseMap
- withResourceMap :: MonadUnliftIO m => (ResourceMap -> m a) -> m a
Documentation
class HasResourceMap env where Source #
An environment with a ResourceMap
Since: 0.1.0.0
resourceMapL :: Lens' env ResourceMap Source #
type ResourceMap = IORef ReleaseMap Source #
A collection of all of the registered resource cleanup actions.
Since: 0.1.0.0
withResourceMap :: MonadUnliftIO m => (ResourceMap -> m a) -> m a Source #
Perform an action with a ResourceMap
Since: 0.1.0.0