elerea: A minimalistic FRP library
Elerea (Eventless reactivity) is a tiny discrete time FRP implementation without the notion of event-based switching and sampling, with first-class signals (time-varying values). Reactivity is provided through various higher-order constructs that also allow the user to work with arbitrary time-varying structures containing live signals.
Stateful signals can be safely generated at any time through a specialised monad, while stateless combinators can be used in a purely applicative style. Elerea signals can be defined recursively, and external input is trivial to attach. The library comes in four major variants:
Simple: signals are plain discrete streams isomorphic to functions over natural numbers;
Param: adds a globally accessible input signal for convenience;
Clocked: adds the ability to freeze whole subnetworks at will;
Delayed: attempts to resolve instantaneous dependency cycles (i.e. cycles without a delay); this variant is likely to be deprecated in the near future.
The first three variants come with precise denotational semantics.
This is a minimal library that defines only some basic primitives,
and you are advised to install
elerea-examples as well to get an
idea how to build non-trivial systems with it. The examples are
separated in order to minimise the dependencies of the core library.
dow package contains a full game built on top of the simple
|Versions||0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 2.0.0, 2.1.0, 2.2.0, 2.3.0, 2.4.0, 2.5.0, 2.6.0, 2.7.0, 220.127.116.11, 18.104.22.168, 2.8.0, 2.9.0|
|Dependencies||base (>=3 && <5), containers, mersenne-random [details]|
|Copyright||(c) 2009, Patai Gergely|
|Maintainer||Patai Gergely (email@example.com)|
|Uploaded||by GergelyPatai at Thu Aug 5 21:14:38 UTC 2010|
|Distributions||LTSHaskell:2.9.0, NixOS:2.9.0, Stackage:2.9.0, openSUSE:2.9.0|
|Downloads||11752 total (79 in the last 30 days)|
|Rating||2.0 (votes: 1) [estimated by rule of succession]|
|Status||Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI
For package maintainers and hackage trustees