Safe Haskell | None |
---|---|
Language | Haskell2010 |
Orphan instances for the RIO
data type.
Synopsis
- class HasResourceMap env where
- resourceMapL :: Lens' env ResourceMap
- 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 #
Instances
HasResourceMap (IORef ReleaseMap) Source # | |
Defined in RIO.Orphans |
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 |
display :: LogStr -> Utf8Builder # textDisplay :: LogStr -> Text # | |
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 # | |
liftResourceT :: ResourceT IO a -> RIO env a # | |
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 |
HasLogFunc env => MonadLoggerIO (RIO env) Source # | Do not let the generated function escape its RIO context. This may lead to log-related cleanup running before the function is called. Since: 0.1.2.0 |