github purescript/purescript v0.10.3

latest releases: v0.15.16-1, v0.15.16-0, v0.15.15...
7 years ago

Enhancements

Solving IsSymbol instances

(@LiamGoodacre)

The compiler will now derive Data.Symbol.IsSymbol instances for type-level string literals.

This enables interesting type-level programming features, such as deriving Show instances using Data.Generics.Rep.

Rows in Instance Heads

(@LiamGoodacre)

The compiler now allows rows to appear in type class instance heads, but only in type arguments which are fully determined by some functional dependency.

This allows instances like

MonadState { field :: Type } MyAppMonad

and also Newtype instances for newtypes which contain records.

Speeds up parsing by reading files as Text

(@kritzcreek)

The use of String has been replaced by Text in the compiler, resulting in some non-trivial performance improvements.

Functional Dependencies in psc-docs output

(@soupi, #2439)

psc-docs now includes functional dependency information when rendering type classes.

New psc-package Commands

  • The available command (@andyarvanitis) shows all available packages in the current package set
  • The uninstall command (@joneshf) removes a package from the set of active packages and updates the package configuration file.

Type Class Warning (@joneshf)

A warning was added for shadowed type variables in type class declarations.

Bug Fixes

  • psc-package: display full path in 'packages.json does not exist' error messsage (@andyarvanitis)
  • Use writeUTF8File in psc-bundle (@hdgarrood)
  • Use HTTPS to query Pursuit (@paf31)
  • Moved the expansion of astral code points to UTF-16 surrogate pairs from the JS code generator to the parser (@michaelficarra, #2434)
  • Allow astral code points in record literal keys (@michaelficarra, #2438)
  • Add value source positions (@nwolverson)
  • Update error message of ErrorInDataBindingGroup to include participating identifiers (@LiamGoodacre)

psc-ide

Other

Don't miss a new purescript release

NewReleases is sending notifications on new releases.