This library provides a DSL for writing reactive programs in Idris2. It was inspired by Haskell's dunai library, and the implementation adjusted to Idris2 in such a way that it satisfies the totality checker.
This is still bound to change a lot, as I'm still experimenting with different additional type level guarantees to make switching a looping more versatile while keeping the totality checker happy.
My main focus right now is to use this for writing single page web application in a declarative manner. This is therefore developed in parallel with idris2-rhone-js, which provides DOM bindings for the monadic stream functions introduced in this library.
There is a growing list of pretty detailed tutorials
in the src/Doc
folder. For an introduction to the basic
concepts and arrowized functional reactive programme,
start here.
For bundling and broadcasting input to several stream functions, we use the sum and product types for them idris2-sop project. There are additional prerequisites for building the documentation and for running the tests.
The latest commit is daily tested to build against the current HEAD of the Idris compiler. Since Idris2 releases are happening rather infrequently at the moment, it is suggested to use a package manager like pack to install and maintain matching versions of the Idris compiler and this library. Pack will also automatically install all required dependencies.
In Haskell, there is a tradition to name arrowized functional reactive programming (AFRP) libraries and derivations thereof after rivers (e.g: yampa, dunai, bearriver, and rhine). When I started experimenting with AFRP in Idris2, I was in the Swiss canton of Wallis, where the river Rhône (Rhone in German) has its source, so I thought this would be a fitting name for this library.