发布于 2015-03-18 23:17:23 | 161 次阅读 | 评论: 0 | 来源: 网友投递
PureScript 静态类型语言
PureScript 是个小巧而强大的静态类型语言,可以编译成 JavaScript。purescript 主要是由 Haskell 和 PureScript 编写的。
PureScript 是个小巧而强大的静态类型语言,可以编译成 JavaScript。purescript 主要是由 Haskell 和 PureScript 编写的。
PureScript 0.6.9.3 发布,此版本现已提供下载:
更新内容如下:
refEq
and refIneq
are no longer exported from the Prelude
.
Instances can now be defined before the corresponding class declaration (@paf31)
A bug related to imports in psci
was fixed. (@paf31)
A typechecker bug related to type class dictionaries was fixed. (@garyb)
A bug related to operator precedence in codegen was fixed. (@garyb)
psci
now supports long-form directives (@mrhania)
Syntax for imports and other declaration types in psci
was improved. (@hdgarrood)
Markdown comments can now be included at the module level (@joneshf)
Error messages are now represented internally as an algebraic data type, and pretty printing has been improved by using the boxes
library. Errors now link to the wiki. (@paf31)
psc-docs
can now generate tags files for Vim and Emacs (@jacereda)
psci
now supports a --node-opts
flag for passing options to the Node executable. (@MichaelXavier)
Code gen now preserves names of more function arguments in case statements (@andyarvanitis)
The Prelude now has Markdown documentation (various contributors - thank you!)
The Pursuit website has been updated with new versions of libraries, including Markdown documentation (@hdgarrood)
The following libraries are now core libraries:
purescript-tailrec
- A type class for monadic tail recursion
purescript-monad-eff
- A type class for monads supporting native effects
purescript-integers
- Integer numeric type
purescript-invariant
- Invariant functors
purescript-parallel
- An applicative functor for parallel composition of asynchronous computations
There is an experimental C++11 backend for PureScript called pure11.