Skip to content

stefan-hoeck/idris2-rhone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

idris2-rhone : Monadic Stream Functions in Idris2

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.

Documentation

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.

Dependencies

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.

Core Library

Docs

Testing

About the Name

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages