module folktale/fantasy-land

Allows invoking methods of Fantasy Land structures without worrying about the differences in multiple versions of the spec implemented by different libraries. You may want to use this instead of calling the methods directly if you're writing generic functions to work with any fantasy-land library.

Documentation

Allows invoking methods of Fantasy Land structures without worrying about the differences in multiple versions of the spec implemented by different libraries. You may want to use this instead of calling the methods directly if you're writing generic functions to work with any fantasy-land library.

Properties

Applicative

apply(applicativeFunction, applicativeValue)

Applies the function inside an applicative to the value of another applicative.

of(applicative, value)

Constructs an applicative containing the given value.

Bifunctor

bimap(bifunctor, transformLeft, transformRight)

Maps one function over each side of a Bifunctor.

Convenience

curried

Curried versions of the fantasy-land functions.

infix

Method versions of the fantasy-land functions, supporting the structure::fn(...) syntax.

Experimental

Functor

map(functor, transformation)

Transforms the contents of a Functor.

Monad

chain(monad, transformation)

Transforms a monad with an unary function.

Monoid

empty(monoid)

Returns the identity object for a monoid.

Semigroup

Setoid

equals(setoidLeft, setoidRight)

Compares two setoids for equality.

(Uncategorised)

Source Code

Defined in source/fantasy-land/index.js at line 14, column 0
{
  apply: require('./apply'),
  concat: require('./concat'),
  chain: require('./chain'),
  empty: require('./empty'),
  map: require('./map'),
  of: require('./of'),
  equals: require('./equals'),
  bimap: require('./bimap'),
  curried: require('./curried'),
  infix: require('./infix'),
  alt: require('./alt'),
}
Stability
stable
Licence
MIT
Module
folktale/fantasy-land
Authors
Copyright
(c) 2013-2017 Quildreen Motta, and CONTRIBUTORS
Authors
  • Quildreen Motta
Maintainers
  • Quildreen Motta <queen@robotlolita.me> (http://robotlolita.me/)