Expand description
Implementation of some basic instances (in Haskell’s meaning of a instances).
To get an understanding of what instances are about, see option.
For MonadFail<E> examples, see result1.
For the simplest form of Monad, see solo2.
For async support, see future21 and tryfuture21.
For “creative” execution models, see lazy1 and stackless1.
For combining monads, see composition1.
Modules
- Monad for passing and combining metadata related to the evaluation of values.
- Helper Monads to defer execution until necessary. Wrapped value is just a box pointing to the constructor function.
- Add extra behaviour on top of an existing instance.
- Implementation of
MonadFail<E>forResult<A, E>. - Simplest sync Monad.
- Helper Monads to move deep execution chains off the stack onto the heap.
Stackless<A>represents a wrapped value. - Fallible version of
future.