0.0.2 • Published 12 years ago

cats v0.0.2

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

cats.js

(This is an alpha product.)

Categories for Javascript adapted from Haskell's Control modules.

var main = Monad.do
  (print("3")) (pause)
  (print("2")) (pause)
  (print("1")) (pause)
  (print("Blast off!"))
  // The closing pair of parentheses is required.
  ();

main.run();

Try it out: http://jsfiddle.net/enQyg/3.

More Examples

Drag and drop.

var dragdrop = function(x) {
  return click(x).then(drag);
}

BSD licensed.

0.0.2

12 years ago

0.0.1

12 years ago