PureScript 0.15.17 is out!
This release adds attached derive clauses, letting you declare derived instances directly after a data or newtype declaration:
data Color = Red | Green | Blue
derive (Eq, Ord)
newtype Name = Name String
derive (Eq, Ord)
data Box a = Empty | Full a
derive (Functor)
Attached clauses support the compiler’s built-in deriving mechanisms and work alongside standalone derive instance declarations. They do not support derive newtype.
The release also fixes inlined Data.Int.Bits.zshr results falling outside the signed 32-bit Int range. Shifting a negative input by zero or a multiple of 32 now returns the original signed input. If you use zshr x 0 as an unsigned conversion, note this behavior change.
Install with: npm install -g purescript@0.15.17
If you use Nix, the purescript-overlay provides 0.15.17. Also, binaries are available on GitHub, documentation is updated, and registry package set 82.1.0 targets this compiler.
Full release notes and downloads:
Thanks to everyone who contributed!