rio-orphans-0.1.1.0: Orphan instances for the RIO type in the rio package

Safe HaskellNone
LanguageHaskell2010

RIO.Orphans

Contents

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

Minimal complete definition

resourceMapL

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

Methods

liftBase :: IO α -> RIO env α #

MonadBaseControl IO (RIO env) Source #

Since: 0.1.0.0

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 # 

Methods

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

MonadCatch (RIO env) Source #

Since: 0.1.0.0

Methods

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

MonadMask (RIO env) Source #

Since: 0.1.0.0

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

Methods

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