Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Writer w (e :: Effects)
- runWriter :: forall w (es :: Effects) r. Monoid w => (forall (e :: Effects). Writer w e -> Eff (e :& es) r) -> Eff es (r, w)
- execWriter :: forall w (es :: Effects) r. Monoid w => (forall (e :: Effects). Writer w e -> Eff (e :& es) r) -> Eff es w
- tell :: forall (e :: Effects) (es :: Effects) w. e :> es => Writer w e -> w -> Eff es ()
Documentation
In most cases you'll probably prefer Stream
to Writer
, but Writer
can still be useful in some cases,
for example with Data.Monoid.
to determine
whether an event ever occurred.Any