Base trait for custom instances of Writer effect.
case object MyWriter extends WriterEffect[Int]
// optional:
type MyWriter = MyWriter.type
Notice that WriterEffectExt takes type 2 parameters. This abstraction enables ergonomic syntax of tell(w)
, which relieves the user from the necessity of wrapping w
in Nel
(raise(Nel(w))
), as in the standard Writer
monad. For the simpler, single-parmeter version, see WriterEffect.
Type parameters
- W
-
Accumulator
- W1
-
Singular value added to the accumulator
Attributes
- See also
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
trait WriterEffect[W]
- Self type
-
Members list
Value members
Concrete methods
Attributes
- Definition Classes
Alias of the default handler for this effect.
Alias of the default handler for this effect.
Defined as an extension, to allow custom redefinitions without restrictions imposed by overriding
Attributes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Attributes
- Definition Classes
Inherited methods
API for defining custom handlers.
API for defining custom handlers.
Combines with another Effect instance, for the purpose of sharing an Interpreter.
Example of application: implement RWS
-alike handler for Reader &! Writer &! State
composition of effects.
Attributes
- Inherited from:
- Effect
API for defining custom effects.
API for defining custom effects.
Embeds an invocation of this Signature's method into the Computation monad. This provides mechanism for separation between syntax an semantics of effects.
Attributes
- Inherited from:
- Effect
API for defining custom effects.
Inherited fields
API for defining custom handlers.
API for defining custom handlers.
Helper object providing type definitions to be used for implementing Interpreters for this effect.
Attributes
- Inherited from:
- Effect