Releases: purescript/purescript-prelude
Releases · purescript/purescript-prelude
v6.0.1
v6.0.0
Breaking changes:
- Migrated FFI to ES Modules (#287 by @kl0tl and @JordanMartinez)
- Change Generic Rep's
NoConstructors
to newtypeVoid
(#282 by @JordanMartinez) - Replaced polymorphic proxies with monomorphic
Proxy
(#281, #288 by @JordanMartinez) - Fix
signum zero
to returnzero
(#280 by @JordanMartinez) - Fix
Show
instance on records with duplicate labels by addingNub
constraint (#269 by @JordanMartinez)
New features:
- Added the
Data.Reflectable
module 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
Number
is not a fully law abiding instance ofOrd
(#277 by @JamieBallingall) - The internal FFI function
join
inData.Show
has been renamed tointercalate
to
match the same function inData.Show.Generic
(#274 by @cdepillabout)
v5.0.1
Other improvements:
- Fix warnings revealed by
v0.14.1
PS release (#262 by @JordanMartinez)
v5.0.0
Breaking changes:
- Support compiler version
v0.14.0
, and drop support for previous versions (#206, #226) purescript-proxy
was ported to this repo (#230)purescript-generics-rep
was ported to this repo (#235)- Move the
Applicative
Superclass law fromMonad
toBind
and rename it
to theApply
Superclass law (#229) - Removed
unsafeCompare
(#257)
New features:
- Added
Bounded
instance for records (#208) - Added
Show
instances toData.Generics.Rep
types (#250) - Added
toRep
(#238)
Bugfixes:
- No longer use reference equality check in
Array
'sEq
instance because it breaks referential transparency (#187). - Fix Ring laws (#228)
Documentation improvements:
- Added
lift2
example usingMaybe
(#213) - Added
const
example (#214) - Added
power
example (#253) - Clarify
Array
's do notation and the purposes ofMonoid
andSemigroup
newtypes (#217) - Clarify
Unit
representation 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
id
has been renamed toidentity
- The modulo and division behaviour for integers is now based on Euclidean division. Functions implementing the old
div
/mod
behaviour are available asquot
/rem
inpurescript-integers
. (#161, #168) - The definition of
Field
has been altered. It is no longer necessary to provide an instance for this, there is a single instance now for every type that implementsEuclideanRing
andDivisionRing
.
Other changes
Monoid
has been moved into the preludeData.Symbol
has been moved into the preludeRProxy
andRLProxy
have 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.applyN
for repeatedly applying a function to an initial value (@matthewleon)