ramda-fantasy
Fantasy Land compatible types for easy integration with Ramda.
Project status
Ramda-Fantasy is no longer developed. There are a number of excellent libraries providing algebraic datatypes in JavaScript. The existing npm releases of Ramda-Fantasy will remain available indefinitely.
We recommend a number of alternative libraries such as Sanctuary, Folktale, Fluture, and Fantasy-Land.
Specifically, we suggest these replacements:
- Maybe: sanctuary-js/sanctuary-maybe
- Either: sanctuary-js/sanctuary-either
- Future: fluture-js/Fluture
- State: fantasyland/fantasy-states
- Tuple: fantasyland/fantasy-tuples
- Reader: fantasyland/fantasy-readers
- IO: fantasyland/fantasy-io
- Identity: sanctuary-js/sanctuary-identity
Available types
Name | Setoid | Semigroup | Functor | Applicative | Monad | Foldable | ChainRec |
---|---|---|---|---|---|---|---|
Either | βοΈ | βοΈ | βοΈ | βοΈ | βοΈ | ||
Future | βοΈ | βοΈ | βοΈ | βοΈ | |||
Identity | βοΈ | βοΈ | βοΈ | βοΈ | βοΈ | ||
IO | βοΈ | βοΈ | βοΈ | βοΈ | |||
Maybe | βοΈ | βοΈ | βοΈ | βοΈ | βοΈ | βοΈ | βοΈ |
Reader | βοΈ | βοΈ | βοΈ | ||||
Tuple | βοΈ | βοΈ | βοΈ | ||||
State | βοΈ | βοΈ | βοΈ | βοΈ |
Access like so:
var Either = require('ramda-fantasy').Either;