Moduleeffectful-core-2.7.1.2GHC2021
Effectful.Writer.Static.Local
Support for access to a write only value of a particular type.
The value is thread local. If you want it to be shared between threads, use
Effectful.Writer.Static.Shared.
Warning: Writer's state will be accumulated via left-associated uses
of <>, which makes it unsuitable for use with types for which such pattern
is inefficient. This applies, in particular, to the standard list type,
which makes the Writer effect pretty niche.
If you just want to accumulate values, use Effectful.Output.Static.Local.Array or Effectful.Output.Static.Local.List.
Note: while the Writer from the
transformers package includes additional operations
pass and
censor, they don't cooperate with runtime
exceptions very well, so they're deliberately omitted here.
Contents
- Effect
- Handlers
- Operations
Synopsis