purescript v0.10.3 Release Notes

Release Date: 2016-12-11 // over 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

    • Polling option for psc-ide-server (@kRITZCREEK)
    • ๐Ÿ‘ Better logging and diagnostics (@kRITZCREEK)

    Other

    • โœ… Dump output of psc tests to file (@andyarvanitis, #2453)
    • ๐Ÿ›  Fix windows CI (@hdgarrood)
    • ๐Ÿ”— Link to new documentation repo (@hdgarrood)
    • ๐Ÿ“š Create documentation for psc-package (@paf31)
    • ๐Ÿ›  Fix GHC 8.0.2 build (@RyanGlScott)
    • โž• Add psc-package to release bundle (@marsam)
    • โšก๏ธ Update for latest language-javascript (@tmcgilchrist)
    • ๐Ÿ›  Fix exhaustivity warnings (@charleso)
    • โšก๏ธ Update CONTRIBUTING.md (@osa1)