rsagl-frp-0.6.0.1: The RogueStar Animation and Graphics Library: Functional Reactive Programming

RSAGL.FRP.RecombinantState

Synopsis

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.

Associated Types

type SubState s :: *Source

Methods

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.

Instances