bluefin-0.7.0.1: The Bluefin effect system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Bluefin.Capability.Tell

Synopsis

Documentation

In most cases you'll probably prefer Yield to Tell, but Tell can still be useful in some cases, for example with Data.Monoid.Any to determine whether an event ever occurred.

Capability

type Tell = Writer #

Handlers

runTell :: forall w (es :: Effects) r. Monoid w => (forall (e :: Effects). Tell w e -> Eff (e :& es) r) -> Eff es (r, w) #

execTell :: forall w (es :: Effects) r. Monoid w => (forall (e :: Effects). Tell w e -> Eff (e :& es) r) -> Eff es w #

Effectful operations

tell :: forall (e :: Effects) (es :: Effects) w. e <: es => Writer w e -> w -> Eff es () #