github purescript/purescript v0.8.5

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

New Features

  • Fast recompilation for single files in psc-ide-server #1712 (@kritzcreek, @paf31)

    The pscid project makes use of this to watch files as you work and raise errors and warnings when they occur with near instant feedback.

  • Operator aliases can now be declared for types #416 (@garyb)

    infixr 6 type Natural as ~>
  • Underscore wildcards can now be used in case and if expressions #1558 (@garyb)

    case _ of
      Something -> ...
    -- underscores can optionally be used in any part of an `if` expression
    cond = if _ then _ else _
    picker = if _ then "x" else "y"
  • Typed holes #1283 (@garyb)

    example :: forall a. Maybe a -> Unit
    example ma = ?umm
    Hole 'umm' has the inferred type
    
      Unit
    
    in value declaration example
    

    You can use any identifier name after the question mark and that will be used to label the hole in the raised error message.

Breaking changes

  • Type annotations may need parentheses in some situations that they previously did not due to the introduction of type operators. For example, x :: a == y will be now parsed as x :: (a == y) instead of (x :: a) == y.

Enhancements

  • Improved error messages for invalid FFI identifiers #2011 (@hdgarrood)
  • psc-publish now allows publishing of packages with a valid SPDX license field in bower.json #1985 (@hdgarrood)
  • Haddock markdown fix #2001 (@trofi)
  • psc-ide now creates the output folder on startup if it is missing #2030 (@kritzcreek)

Bug Fixes

  • Fixed an issue with incorrect suggestions when re-exporting modules #1862 (@garyb)
  • Fixed an issue with invalid redundant import warnings #1823 (@garyb)
  • Fixed an issue where DuplicateSelectiveImport would not fire when it should #2004 (@garyb)
  • Fixed the error that occurs when an invalid newtype is created that belongs to a data binding group #1895 (@garyb)
  • Fixed a case where re-exports included unintended exports #1872 (@garyb)
  • Operator aliases can now be declared for qualified data constructors #2015 (@LiamGoodacre)
  • A single hiding import will no longer raise an "unspecified imports" error #2017 (@garyb)
  • Fixed a case where cycles in modules were being detected when they do not occur #2018 (@garyb)
  • Various cases where files were not being read as UTF-8 on Windows were fixed #2027, #2031 (@garyb, @kritzcreek)
  • Fixed some issues in pretty printing of records #2043 (@LiamGoodacre)
  • psci now shows qualified imports correctly #2040 (@LiamGoodacre)
  • Parser errors are now returned as JSON during IDE rebuild #2042 (@paf31)

Don't miss a new purescript release

NewReleases is sending notifications on new releases.