Library for manipulating and composing continuations in Elm.
Continuation would be probably discouraged by broader elm community.
Use this package as learning material or accept that its usage will
probably be considered being anti-pattern and the fact that I'm neither trying
you to convince to use or am being responsible for other folks reactions when you do so.
This package contains minimal implementation for abstractions to work with continuations
which are commonly described as Continuation as Functor (
map), Applicative (
andMap) and Monad (
One of the practical usages one can see is to use it as a decoupling mechanism. You might be interested in G. Gonzalez's blog post on this topic.
Please note that this implementation is fairly limited due to lack as we can't express Monad Transformers in elm.