calamity-0.8.0.0: A library for writing discord bots in haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Calamity.Internal.LocalWriter

Description

A Writer monad that supports local writing, reverse reader I guess?

Documentation

data LocalWriter o m a where Source #

Constructors

Ltell :: o -> LocalWriter o m () 
Llisten :: m a -> LocalWriter o m (o, a) 

ltell :: forall o r. Member (LocalWriter o) r => o -> Sem r () Source #

llisten :: forall o r a. Member (LocalWriter o) r => Sem r a -> Sem r (o, a) Source #

runLocalWriter :: Monoid o => Sem (LocalWriter o ': r) a -> Sem r (o, a) Source #