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
andNumber
literals. To disambiguate the two, integerNumber
values must now be written with a decimal place (3.0
rather than3
). - 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 asArray
, and[a]
asArray 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
whereX.Y.Z
is the name of the module the JS values are for. - See here for an example
- Values must instead be provided in a separate
Full release notes coming soon