Skip to content
Monad Library for JavaScript
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
lib
LICENSE
README.md
package.json

README.md

monadjs

Monad Library for JavaScript

Install

$ npm install monadjs

Usage

Nodejs

var monads = require("monadjs");

Browser

Use browserify to use in browser.

Note: Latest version "0.1.0" is not compatible with the previous versions "0.0.6"

Docs

Available monads

monads.identity      // Identity Monad
monads.mayBe         // Maybe Monad
monads.array         // Array Monad
monads.state         // State Monad
monads.continuation  // Continuation Monad
monads.parser        // Parser Monad
monads.do            // is the doMonad function

See examples folder.

See the following blogpost for usage and explanation. http://functionaljavascript.blogspot.in/2013/07/monads.html

You can’t perform that action at this time.