calamity-0.1.24.2: A library for writing discord bots in haskell
Safe HaskellNone
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) 

Instances

Instances details
type DefiningModule LocalWriter Source # 
Instance details

Defined in Calamity.Internal.LocalWriter

type DefiningModule LocalWriter = "Calamity.Internal.LocalWriter"

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

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

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