cats

0.0.2 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    24
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    24
  • 0.0.1
    0

Package Sidebar

Install

npm i cats

Weekly Downloads

24

Version

0.0.2

License

BSD

Last publish

Collaborators

  • lcfrs