Documentation
class RecombinantState s whereSource
Describes concurrency-aware state. The goal is to take some stateful information, clone it into a variety of concurrent threads, and then recombine using the (possibly modified) state.
clone :: s -> SubState sSource
A new version of the state, which should carry the context, but not the content, of the original. I.e., the original content will be re-merged during the recombination phase.
recombine :: s -> SubState s -> sSource
Recombine the modified, cloned information with the original state.