github purescript/purescript v0.7.3

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

Major Features

  • @gbaz has implemented generic deriving. This allows instances for the Generic class in the purescript-generics package to be derived by the compiler.

    A Generic instance can be derived as follows:

    data Example = Foo String | Bar Int | Baz Boolean
    
    derive instance genericExample :: Generic Example

    purescript-generics provides examples of usage, such as gShow, gEq and gCompare, for printing, equality tests and comparison respectively.

    See #1138.

  • @garyb has implemented a test for orphan instances which will now cause the build to fail with an error. See #1247

Enhancements

  • @mjgpy3 has added a warning when an input glob does not match any files.

Bug Fixes

  • The psc: <<loop>> has been fixed. This was due to a bug in the error pretty printer. (@paf31)
  • An issue with unicode characters in string literals was fixed by @michaelficarra.
  • Compiler errors are now pretty printed in psc-publish (@paf31)
  • Modules are no longer linted if they are not being rebuilt (@paf31)
  • FFI bindings are now reloaded when changed, in PSCi (@paf31)

Other

  • @phadej and @zudov have improved our CI process, so that PureScript now compiles against three versions of GHC and two LTS Stackage releases, as well as the nightly stackage releases.
  • @phadej and @lukerandall have worked on supporting PureScript in Stackage.

Don't miss a new purescript release

NewReleases is sending notifications on new releases.