Skip to content

Releases: mckayb/phantasy

v1.2.0

12 Oct 15:05
f602ecf
Compare
Choose a tag to compare

Added Text as a data type. Check out the docs to learn more!

v1.1.0

03 Apr 01:48
5400b7a
Compare
Choose a tag to compare

Better constant docs. Let you pass both params to const instead of forcing you to put one at a time.

v1.0.0

24 Feb 19:48
Compare
Choose a tag to compare

Updated to get the latest dependencies. Removed php7.0 from support as it's now EOL.

v0.14.2

15 Feb 14:22
Compare
Choose a tag to compare

Fixed composer.json issues.

v0.14.1

16 Nov 14:41
b8fbe19
Compare
Choose a tag to compare
  • Keeping the docs up to date.

v0.14.0

16 Nov 14:20
8b423b1
Compare
Choose a tag to compare
  • Added IO monad.
  • Changed traverse and sequence to use a callable instead of a class name. (Pass in the of function).
  • Added an easy way to do property testing of the fantasy-land laws.
  • Added the flip method for flipping the argument order of functions.

v0.13.0

17 Oct 13:06
Compare
Choose a tag to compare
  • Added Set and Collection Data Types.
  • Made sure that all of the Core functions for Functor, Applicative, Monad, Foldable, Traversable, etc would work with regular php arrays.
  • Added array natural transformations in the core functions.
  • Added fromFalse methods to Maybe, Either, and Validation, since a lot of php functions return false on failure.

v0.12.0

08 Oct 16:17
Compare
Choose a tag to compare
  • Added Kleisli composition through composeK.
  • Added various foldable methods like fold, foldMap, unfold.
  • Added do-like notation using generator functions with mDo.
  • Added head and tail methods for working with arrays and LinkedLists.
  • Added traversable and extend instances to Validation.
  • Standardized the fold and cata methods on the various DataTypes.

v0.11.0

10 Sep 15:36
Compare
Choose a tag to compare
  • Added Semigroup, Traversable, Extend instances to Maybe and Either.
  • Fixed extend and comonad instances to be lawful on Reader and Writer.
  • Slightly better structure on the docs.

v0.10.0

04 Sep 17:23
Compare
Choose a tag to compare
  • Added much more fantasyland-helpers such as of, extend, chainRec, etc etc.
  • Added comonad and extend instances to Writer.
  • Added better type signatures to all of the functions.
  • Made it so that every method call in the datatypes is also curried.
  • And more! Check out the docs.