A strongly-typed language that compiles to JavaScript
OTHER License
Bot releases are visible (Hide)
Published by paf31 almost 10 years ago
positive n | n > 0 = true
positive _ = false
but this is not:
positive n | n > 0
= true
positive _ = false
psci
(#615, @garyb)Published by paf31 almost 10 years ago
For more information on PureScript, see the purescript.org website.
Alternative
type class hierarchy was refactored. See here.--runtime-type-checks
has been removed. The recommended approach is to use purescript-foreign
. (@garyb)Unit
type is now used in the Prelude and core libraries to represent values containing no data. (@garyb)docgen
is now called psc-docs
.newtype
keyword. The runtime representation of a newtype is identical to that of the contained type. (@garyb)runFnN
and mkFnN
families of functions are now inlined by the optimizer, making interop with JavaScript functions of multiple arguments much simpler. (@paf31)Renamer
module now renames identifiers which shadow other names in scope, which greatly simplies code generation. (@garyb)psci
now provides the following new options:
:b
to browse a module (@ardumont):s
to show current imports or modules (@ardumont):k
to find the kind of a type constructor (@5outh)PureScript_paths
module has been removed, which makes distribution via binaries simpler. (@paf31)if
blocks now get optimized. (@garyb)psc
into the file as a comment. (@co-dh)()
is now valid syntax, referring to the empty row. (@paf31)import ... hiding ( ... )
(@andreypopp)psci
now checks imports for validity. (@Bogdanp)Alternative
type class hierarchy was refactored (@joneshf, @garyb)exceptions
library no longer supports throwing exceptions of any type.purescript-transformers
purescript-free
purescript-const
purescript-identity
purescript-lazy
purescript-distributive
purescript-bifunctors
purescript-contravariant
purescript-profunctors
purescript-maps
Published by paf31 about 10 years ago
Published by paf31 about 10 years ago
Published by paf31 about 10 years ago
This incremental release is provided to provide bug fixes and features required to compile the latest core libraries.
Published by paf31 over 10 years ago
Support for blocks has been removed. (paf31)
Type class instances must now be named (paf31)
instance showNumber :: Show Number where
...
Prelude modules now follow a naming scheme similar to haskell (e.g. Data.Maybe
, Control.Monad
) (garyb)
Many modules that were previously part of the Prelude have been split into individual libraries, now distributed via Bower (garyb)
Multiple modules with the same name are now disallowed rather than merged (garyb)
The Prelude
module is now imported automatically. Conflicts can be avoided by using qualified imports or an explicit import list. (garyb, paf31)
Overlapping instances are no longer allowed. The Prelude
and core libraries have been updated accordingly. (paf31)
Functor
, Applicative
, Monad
are now part of a class heirarchy that include Apply
and Bind
. return
is now an alias for pure
. (joneshf, paf31, garyb)
Semigroupoid
is now a superclass of Category
(garyb)
(:)
is now part of Prelude (garyb)
(!!)
has been renamed to Prelude.Unsafe.unsafeIndex
and a safe version has been added to Data.Array
(garyb)
let
keyword can introduce several local (possibly mutually recursive) bindings, along with optional type signatures. (paf31)where
clauses are now supported in value declarations, with the same rules as let
bindings (garyb)--codegen
controls which modules will have Javascript and externs generated (paf31)psc-make
now generates CommonJS-compatible modules, which can be used with require()
in node
. psc
still generates modules for use in the browser. (paf31, garyb).
(garyb):t
command for checking the type of a value (paf31)show
has been improved (joneshf).psci
file in the current directory. If such a file exists, it should contain a list of commands to run on startup. (paf31)import qualified M as X
(garyb)Prim.Object
(with kind # * -> *
) (paf31)--no-tco
and --no-magic-do
flags (garyb)--verbose-errors
or -v
(paf31)(++)
is now an alias for the Semigroup operator (<>)
(paf31)sort
no longer mutates arrays (joneshf)--externs
) are now working again (paf31)*
(paf31)sequence $ [Just 1]
from typechecking was fixed (paf31)grunt-purescript
plugin has been updated to provide support for new command line options.gulp-purescript
plugin available for compiling with Gulp.hierarchy
executable which will generate .dot
diagrams based on the type class hierarchy of a module. The Prelude docs have been updated to include such a type class diagram. (joneshf)