rio-orphans-0.1.2.0: Orphan instances for the RIO type in the rio package
Safe HaskellNone
LanguageHaskell2010

RIO.Orphans

Description

Orphan instances for the RIO data type.

Synopsis

Documentation

class HasResourceMap env where Source #

An environment with a ResourceMap

Since: 0.1.0.0

Instances

Instances details
HasResourceMap (IORef ReleaseMap) Source # 
Instance details

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

Instance details

MonadBase IO (RIO env) Source #

Since: 0.1.0.0

Instance details

Methods

liftBase :: IO α -> RIO env α #

MonadBaseControl IO (RIO env) Source #

Since: 0.1.0.0

Instance details

Associated Types

type StM (RIO env) a #

Methods

liftBaseWith :: (RunInBase (RIO env) IO -> IO a) -> RIO env a #

restoreM :: StM (RIO env) a -> RIO env a #

HasResourceMap env => MonadResource (RIO env) Source # 
Instance details

Methods

liftResourceT :: ResourceT IO a -> RIO env a #

MonadCatch (RIO env) Source #

Since: 0.1.0.0

Instance details

Methods

catch :: Exception e => RIO env a -> (e -> RIO env a) -> RIO env a #

MonadMask (RIO env) Source #

Since: 0.1.0.0

Instance details

Methods

mask :: ((forall a. RIO env a -> RIO env a) -> RIO env b) -> RIO env b #

uninterruptibleMask :: ((forall a. RIO env a -> RIO env a) -> RIO env b) -> RIO env b #

generalBracket :: RIO env a -> (a -> ExitCase b -> RIO env c) -> (a -> RIO env b) -> RIO env (b, c) #

HasLogFunc env => MonadLogger (RIO env) Source #

Since: 0.1.1.0

Instance details

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> RIO env () #

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

Instance details

Methods

askLoggerIO :: RIO env (Loc -> LogSource -> LogLevel -> LogStr -> IO ()) #