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 r a w. Writer w a -> Run (writer :: WRITER w | r) a

#liftWriterAt Source

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

#tell Source

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

#tellAt Source

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

#censor Source

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

#censorAt Source

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

#foldWriter Source

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

#foldWriterAt Source

foldWriterAt :: forall s t r a b w. 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 r a w. Monoid w => Run (writer :: WRITER w | r) a -> Run r (Tuple w a)

#runWriterAt Source

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