Skip to content

Releases: purescript/purescript

v0.15.8

06 Mar 11:18
f496fc4
Compare
Choose a tag to compare

New features:

  • Generated documentation now supports dark mode (#4438 by @sometimes-i-send-pull-requests)

    PureScript documentation has a new dark theme available. It will
    automatically be used based on your browser or system's color scheme
    preferences.

Bugfixes:

  • Fix instance deriving regression (#4432 by @rhendric)

  • Outputs what label the type-error occurred on when types don't match (#4411 by @FredTheDino)

  • Account for typed holes when checking value declarations (#4437 by @purefunctor)

    The compiler now takes into account typed holes when ordering value declarations
    for type checking, allowing more top-level values to be suggested instead of
    being limited by reverse lexicographical ordering.

    Given:

    module Main where
    
    newtype K = K Int
    
    aRinku :: Int -> K
    aRinku = K
    
    bMaho :: K
    bMaho = ?help 0
    
    cMuni :: Int -> K
    cMuni = K
    
    dRei :: Int -> K
    dRei _ = bMaho

    Before:

      Hole 'help' has the inferred type
              
        Int -> K
              
      You could substitute the hole with one of these values:
                             
        Main.cMuni  :: Int -> K
        Main.K      :: Int -> K
    

    After:

      Hole 'help' has the inferred type
              
        Int -> K
              
      You could substitute the hole with one of these values:
                              
        Main.aRinku  :: Int -> K
        Main.cMuni   :: Int -> K
        Main.K       :: Int -> K
    

Other improvements:

Internal:

v0.15.8-4

04 Mar 01:10
2298c2f
Compare
Choose a tag to compare
v0.15.8-4 Pre-release
Pre-release

This is an automated preview release. Get the latest stable release here.

v0.15.8-3

02 Mar 10:41
ab15ae7
Compare
Choose a tag to compare
v0.15.8-3 Pre-release
Pre-release

This is an automated preview release. Get the latest stable release here.

v0.15.8-2

05 Feb 08:11
7e44873
Compare
Choose a tag to compare
v0.15.8-2 Pre-release
Pre-release

This is an automated preview release. Get the latest stable release here.

v0.15.8-1

04 Feb 05:32
4cdf6df
Compare
Choose a tag to compare
v0.15.8-1 Pre-release
Pre-release

This is an automated preview release. Get the latest stable release here.

v0.15.8-0

09 Jan 23:08
3cf7393
Compare
Choose a tag to compare
v0.15.8-0 Pre-release
Pre-release

This is an automated preview release. Get the latest stable release here.

v0.15.7

12 Dec 16:19
df5fcff
Compare
Choose a tag to compare

New features:

  • Allow IDE module rebuilds eschewing the filesystem (#4399 by @i-am-the-slime)

    This allows IDE clients to typecheck the module the user is currently typing in without modifying the output.
    This allows for faster feedback cycles in editors and avoids producing a broken /output before the user actually saves the file.

  • Add purs ide dependency/imports filter (#4412 by @nwolverson)

    This allows IDE tooling to filter type searches according to the imports of a given module,
    restricting to identifiers in scope.

  • Shorten custom user-defined error message's prefix (#4418 by @i-am-the-slime)

    Improves clarity and gets to the relevant information faster.

  • The compiler can now derive instances for more types and type classes (#4420 by @rhendric)

    New type classes that the compiler can derive:

    • Bifunctor
    • Bifoldable
    • Bitraversable
    • Contravariant
    • Profunctor

    Moreover, the compiler can also use these classes when deriving
    Functor, Foldable, and Traversable, enabling more instances to be derived
    whereas before such instances would need to be written manually.

Bugfixes:

Other improvements:

  • Improve DuplicateDeclarationsInLet error so that it mentions what variable names were duplicated, reporting several in separate errors as necessary. (#4405 by @MonoidMusician)

  • Fix various typos in documentation and source comments. (#4415 by @Deltaspace0)

  • Bump Stackage snapshot to 2022-11-12 and GHC to 9.2.4 (#4422 by @purefunctor)

Internal:

v0.15.7-9

12 Dec 16:07
b71cb53
Compare
Choose a tag to compare
v0.15.7-9 Pre-release
Pre-release

This is an automated preview release. Get the latest stable release here.

v0.15.7-8

06 Dec 19:55
a564c5b
Compare
Choose a tag to compare
v0.15.7-8 Pre-release
Pre-release

This is an automated preview release. Get the latest stable release here.

v0.15.7-7

05 Dec 15:57
0adf196
Compare
Choose a tag to compare
v0.15.7-7 Pre-release
Pre-release

This is an automated preview release. Get the latest stable release here.