github purescript/purescript v0.7.0-rc.1

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

Important note

This release should be used with the latest versions of the core libraries, which are also tagged as -rc.1.

Breaking changes

  • There are now Int and Number literals. To disambiguate the two, integer Number values must now be written with a decimal place (3.0 rather than 3).
  • The Prelude module is no longer imported automatically, and must be imported the same way as any other module.
  • No modules are included with the compiler now, they have been broken out into their own libraries:
  • [] syntax for array types has been removed. It is still possible to use [] array literals however.
    • [] should now be written as Array, and [a] as Array a.
  • Cons patterns for arrays have been removed.
  • Declaring operators in classes will now produce a warning. Changes will be coming to operators in PureScript 0.8, and moving to named members in classes with operators as aliases (e.g. (<$>) = map) should make the transition easier in the future.
  • JavaScript for the FFI can no longer be provided inline.
    • Values must instead be provided in a separate .js file, and passed to the compiler with the -ffi flag.
    • Values should be provided in the form exports.foo = ..., similar to a CommonJS module
    • The file should have a coment // module X.Y.Z where X.Y.Z is the name of the module the JS values are for.
    • See here for an example

Full release notes coming soon

Don't miss a new purescript release

NewReleases is sending notifications on new releases.