mikesol / purescript-frp-examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

purescript-frp-examples

This repo has several examples of small FRP apps written in PureScript.

Motivation

There are more and more folks interested in using purescript-event and the various libraries that derive from it, such as purescript-behaviors, purescript-deku and purescript-wags. Without a basic understanding of functional reactive programming, using these libraries can be challenging. This repo seeks to provide an introduction to FRP through examples written in deku and wags. Each example aims to be small (less than 300 loc including imports) while non-trivial (except for the hello world).

FRP in PureScript

There are many different dialects and flavors of FRP, and purescript-event is by no means the only one. purescript-signal is another great FRP library, and UI frameworks like purescript-concur use many concepts from FRP. By working through these examples, you'll hopefully build useful intuition for working with all of these libraries.

About


Languages

Language:Dhall 48.2%Language:PureScript 42.5%Language:JavaScript 8.0%Language:HTML 0.7%Language:CSS 0.4%Language:Python 0.2%