Module

Run.Writer

Package
purescript-run
Repository
natefaubion/purescript-run

#Writer Source

data Writer w a

Constructors

Instances

#WRITER Source

type WRITER w = FProxy (Writer w)

#_writer Source

_writer :: SProxy "writer"

#liftWriter Source

liftWriter :: forall w a r. Writer w a -> Run (writer :: WRITER w | r) a

#liftWriterAt Source

liftWriterAt :: forall w a r t s. IsSymbol s => Cons s (WRITER w) t r => SProxy s -> Writer w a -> Run r a

#tell Source

tell :: forall w r. w -> Run (writer :: WRITER w | r) Unit

#tellAt Source

tellAt :: forall w r t s. IsSymbol s => Cons s (WRITER w) t r => SProxy s -> w -> Run r Unit

#censor Source

censor :: forall w a r. (w -> w) -> Run (writer :: WRITER w | r) a -> Run (writer :: WRITER w | r) a

#censorAt Source

censorAt :: forall w a r t s. IsSymbol s => Cons s (WRITER w) t r => SProxy s -> (w -> w) -> Run r a -> Run r a

#foldWriter Source

foldWriter :: forall w b a r. (b -> w -> b) -> b -> Run (writer :: WRITER w | r) a -> Run r (Tuple b a)

#foldWriterAt Source

foldWriterAt :: forall w b a r t s. IsSymbol s => Cons s (WRITER w) t r => SProxy s -> (b -> w -> b) -> b -> Run r a -> Run t (Tuple b a)

#runWriter Source

runWriter :: forall w a r. Monoid w => Run (writer :: WRITER w | r) a -> Run r (Tuple w a)

#runWriterAt Source

runWriterAt :: forall w a r t s. IsSymbol s => Monoid w => Cons s (WRITER w) t r => SProxy s -> Run r a -> Run t (Tuple w a)