Specification for interoperability of common algebraic structures in JavaScript
MIT License
Bot releases are hidden (Show)
exports.types
is now specified in package.json (#333).
Published by davidchambers over 3 years ago
Package is now compatible with native ES modules (#326).
Published by davidchambers over 4 years ago
Package now includes an ES module in addition to a CommonJS module (#321).
Published by davidchambers over 5 years ago
README.md has been reinstated (#313).
Published by davidchambers over 5 years ago
⚠️ Modules for verifying laws have been removed (#284). Use fantasy-laws instead.
Prefixed method names are now used throughout the document (#310). This should reduce confusion.
index.d.ts is now provided for TypeScript users (#294).
bower.json is no longer included in the repository (#292).
Various errors in README.md have been corrected (#308, #309).
Published by davidchambers almost 7 years ago
New type class: Filterable (#274).
Published by davidchambers about 7 years ago
New type class: Group (#272).
Published by davidchambers over 7 years ago
New type classes: Semigroupoid and Category (#248).
Published by davidchambers over 7 years ago
New type class: Ord (#235).
Published by davidchambers over 7 years ago
New type class: Contravariant (#150).
Published by davidchambers almost 8 years ago
fantasy-land/traverse
now takes a type representative rather than an of
function (#220). Additionally, the order of the method's parameters has changed.
Published by davidchambers almost 8 years ago
Published by davidchambers almost 8 years ago
Published by davidchambers almost 8 years ago
Published by davidchambers almost 8 years ago
Published by davidchambers almost 8 years ago
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
.
Published by davidchambers almost 8 years ago
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).
Published by SimonRichardson about 8 years ago
Minor update that includes the following:
Published by SimonRichardson about 8 years ago
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.
Published by SimonRichardson over 8 years ago
Contains: