Releases: purescript/purescript-prelude
Releases · purescript/purescript-prelude
v6.0.2
What's Changed
- Avoid
RangeErrorinarrayBindforeign implementation by @pete-murphy in #314
New Contributors
- @pete-murphy made their first contribution in #314
Full Changelog: v6.0.1...v6.0.2
v6.0.1
Other improvements:
- Documentation: Clarify relationship between
OrdandEq(#298 by @JamieBallingall) - Remove array allocation and local array FFI from the
Showinstance for records. (#299 by @ajnsit)
v6.0.0
Breaking changes:
- Migrated FFI to ES Modules (#287 by @kl0tl and @JordanMartinez)
- Change Generic Rep's
NoConstructorsto newtypeVoid(#282 by @JordanMartinez) - Replaced polymorphic proxies with monomorphic
Proxy(#281, #288 by @JordanMartinez) - Fix
signum zeroto returnzero(#280 by @JordanMartinez) - Fix
Showinstance on records with duplicate labels by addingNubconstraint (#269 by @JordanMartinez)
New features:
- Added the
Data.Reflectablemodule for type reflection (#289 by @purefunctor)
Bugfixes:
Other improvements:
- Changed
unit's FFI representation from{}toundefined(#267 by @JordanMartinez) - Added clearer docs for Prelude module (#270 by @JordanMartinez)
- Clarify docs for
flip(#271 by @JordanMartinez) - Add comment that
Numberis not a fully law abiding instance ofOrd(#277 by @JamieBallingall) - The internal FFI function
joininData.Showhas been renamed tointercalateto
match the same function inData.Show.Generic(#274 by @cdepillabout)
v5.0.1
Other improvements:
- Fix warnings revealed by
v0.14.1PS release (#262 by @JordanMartinez)
v5.0.0
Breaking changes:
- Support compiler version
v0.14.0, and drop support for previous versions (#206, #226) purescript-proxywas ported to this repo (#230)purescript-generics-repwas ported to this repo (#235)- Move the
ApplicativeSuperclass law fromMonadtoBindand rename it
to theApplySuperclass law (#229) - Removed
unsafeCompare(#257)
New features:
- Added
Boundedinstance for records (#208) - Added
Showinstances toData.Generics.Reptypes (#250) - Added
toRep(#238)
Bugfixes:
- No longer use reference equality check in
Array'sEqinstance because it breaks referential transparency (#187). - Fix Ring laws (#228)
Documentation improvements:
- Added
lift2example usingMaybe(#213) - Added
constexample (#214) - Added
powerexample (#253) - Clarify
Array's do notation and the purposes ofMonoidandSemigroupnewtypes (#217) - Clarify
Unitrepresentation in FFI code (#223) - Fix typo: 'ommitted' -> 'omitted' (#220)
Other improvements:
v4.1.0
v4.0.1
v4.0.0
This version is for PureScript v0.12.x.
Breaking changes
idhas been renamed toidentity- The modulo and division behaviour for integers is now based on Euclidean division. Functions implementing the old
div/modbehaviour are available asquot/reminpurescript-integers. (#161, #168) - The definition of
Fieldhas been altered. It is no longer necessary to provide an instance for this, there is a single instance now for every type that implementsEuclideanRingandDivisionRing.
Other changes
Monoidhas been moved into the preludeData.Symbolhas been moved into the preludeRProxyandRLProxyhave been moved into the prelude- There are now various instances available for records:
Eq,Show,Semigroup,Monoid,Semiring... etc. (@i-am-tom)
v3.3.0
- Added
Data.Function.applyNfor repeatedly applying a function to an initial value (@matthewleon)