Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Effect.Writer
Contents
Documentation
data MonadWriterEffect (w :: Type) :: Effect where Source #
Constructors
Writer :: forall (w :: Type) (m :: Type -> Type) (a :: Type). (a, w) -> MonadWriterEffect w m a | |
Tell :: forall (w :: Type) (m :: Type -> Type). w -> MonadWriterEffect w m () | |
Listen :: forall (w :: Type) (m :: Type -> Type) (a :: Type). (m a) -> MonadWriterEffect w m (a, w) | |
Pass :: forall (w :: Type) (m :: Type -> Type) (a :: Type). (m (a, w -> w)) -> MonadWriterEffect w m a |
Instances
MonadWriter e m => InterpretEffectStateful x m (MonadWriterEffect e) Source # | A "passthough" instance for |
Defined in Effect.Writer.Passthrough Methods interpretEffectStateful :: forall (ops :: [Effect]) x0 a. (forall b y. x y -> AST ops b -> m (b, x y)) -> x x0 -> MonadWriterEffect e (AST ops) a -> m (a, x x0) Source # | |
((), MonadWriter w m) => InterpretEffect m (MonadWriterEffect w) Source # | |
Defined in Effect.Writer Methods interpretEffect :: forall (ops :: [Effect]) a. (forall b. AST ops b -> m b) -> MonadWriterEffect w (AST ops) a -> m a Source # |