Specification for interoperability of common algebraic structures in JavaScript
fantasy-land/traverse
now takes a type representative rather than an of
function (#220). Additionally, the order of the method's parameters has changed.
New type classes: Alt, Plus, and Alternative (#197).
Breaking changes to fix problems with fantasy-land/laws
(#193). If depending on fantasy-land/laws
one should lock major and minor version numbers (e.g. 2.1.x
). The specification itself follows semantic versioning, but minor releases may continue to include breaking changes to fantasy-land/laws
.
This release introduces the concept of type representatives (#180). fantasy-land/empty
, fantasy-land/of
, and fantasy-land/chainRec
must now be defined on type representatives. It's no longer necessary to look for definitions in two places – expressions such as typeof x['fantasy-land/empty'] == 'function' ? x : x.constructor
are no longer required when defining polymorphic functions!
The type-class diagram in the readme now includes all the type classes defined in the specification (#192).
Minor update that includes the following:
Fantasy-Land version 1.0.0
ap
arguments have now been flipped to keep in line with map
and chain
#145traverse
method instead of sequence
#135chainRec
type has been added #152Thanks goes to: @rpominov @davidchambers @safareli @scott-christopher @joneshf and many more.
Contains: