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
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 #