github purescript/purescript v0.13.6

latest releases: v0.15.16-4, v0.15.16-3, v0.15.16-2...
4 years ago

Bug Fixes

  • Reset IDE state before performing a full reload. (#3766, @kritzcreek)

    This prevents a space leak in the IDE.

  • Added source spans to ado desugaring. (#3758, @dariooddenino)

    Previously errors in ado desugaring might have had no line information.

  • Generate correct arity failure case for some guarded matches. (#3763, @nwolverson)

    Specifically when a multi-way case contains a pattern guard or multiple
    guard expressions, the desugared case expression could contain a guard with
    a different arity to the matched expressions, resulting in an error.

Improvements

  • Improved ambiguous variable check for functional dependencies. (#3721, @MonoidMusician)

    Previously the compiler might warn about ambiguous variables that aren't actually ambiguous
    due to functional dependencies. This check now fully takes functional dependencies into
    consideration.

  • Optimize import desugaring for full builds (#3768, @colinwahl)

    The compiler was performing redundant work when resolving dependencies for modules resulting
    in poor asymptotics. This work is now shared across modules yielding a 30-40% improvement in
    build times for full builds.

  • Use PureScript escapes in string pretty-printing (#3751, @hdgarrood)

    Previously the compiler might print invalid escape sequences when pretty-printing code for
    error messages. It now prints correctly escaped code based on PureScript's lexical grammar.

  • Optimize away binds to wildcards in do-notation (#3220, @matthewleon, @hdgarrood)

    This avoids generating variable assignments if no variables are actually bound in do-notation.
    Previously the compiler would emit a unique variable name that went unused.

  • Output docs.json files for Prim modules (#3769, @f-f)

    This change allows downstream tools such as spago to obtain documentation data for Prim modules.
    Please note, however, that the API for the docs.json files is unstable and may change without warning.

Other

Don't miss a new purescript release

NewReleases is sending notifications on new releases.