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
Orphan instances
Display LogStr Source # | Since: 0.1.1.0 |
MonadBase IO (RIO env) Source # | Since: 0.1.0.0 |
MonadBaseControl IO (RIO env) Source # | Since: 0.1.0.0 |
HasResourceMap env => MonadResource (RIO env) Source # | |
MonadCatch (RIO env) Source # | Since: 0.1.0.0 |
MonadMask (RIO env) Source # | Since: 0.1.0.0 |
HasLogFunc env => MonadLogger (RIO env) Source # | Since: 0.1.1.0 |