Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Most definitions follow the RIO lib: https://hackage.haskell.org/package/rio-0.1.22.0/docs/RIO.html The rest follow from orphans: https://hackage.haskell.org/package/rio-orphans-0.1.2.0/docs/RIO-Orphans.html See LICENSE info in the README.
Documentation
Instances
MonadReader env (RIO env) Source # | |
HasStateRef st env => MonadState st (RIO env) Source # | |
(Monoid w, HasWriteRef w env) => MonadWriter w (RIO env) Source # | |
MonadFail (RIO env) Source # | |
MonadIO (RIO env) Source # | |
Applicative (RIO env) Source # | |
Functor (RIO env) Source # | |
Monad (RIO env) Source # | |
MonadCatch (RIO env) Source # | |
MonadMask (RIO env) Source # | |
MonadThrow (RIO env) Source # | |
HasLogAction env => MonadLogger (RIO env) Source # | |
PrimMonad (RIO env) Source # | |
HasResourceMap env => MonadResource (RIO env) Source # | |
MonadUnliftIO (RIO env) Source # | |
Monoid a => Monoid (RIO env a) Source # | |
Semigroup a => Semigroup (RIO env a) Source # | |
type PrimState (RIO env) Source # | |
readSomeRef :: MonadIO m => SomeRef a -> m a Source #
writeSomeRef :: MonadIO m => SomeRef a -> a -> m () Source #
modifySomeRef :: MonadIO m => SomeRef a -> (a -> a) -> m () Source #
newSomeRef :: MonadIO m => a -> m (SomeRef a) Source #
class HasStateRef st env | env -> st where Source #
class HasWriteRef w env | env -> w where Source #
type ResourceMap = InternalState Source #
class HasResourceMap env where Source #
resourceMapL :: Lens' env ResourceMap Source #
Instances
HasResourceMap ResourceMap Source # | |
Defined in LittleRIO |
withResourceMap :: MonadUnliftIO m => (ResourceMap -> m a) -> m a Source #