This is a demonstration of combining Fay, a Haskell-to-Javascript compiler, and Bacon.js, an FRP library.
To run the demo, first install Fay on your system, then run
$ fay BaconAndFay.hs
This should generate BaconAndFay.js.
Now open demo.html in your browser and move your mouse.