红联Linux门户
Linux帮助

PureScript 0.7.5发布,静态类型语言

发布时间:2015-10-21 09:10:56来源:红联作者:empast
PureScript 0.7.5 发布,主要更新如下:

改进

Pretty printing of types and expressions in errors was improved (@paf31)

Externs files are now saved as JSON (@paf31)

Support for parallel builds has been added (@paf31)
Builds will now use multiple cores by default, but the number of capabilities can be modified by passing the -N option to the GHC runtime:
psc +RTS -N8

Binders can now be given type annotations (@5outh)

For example:
example = do n :: Int <- get put (n + 1)
This can be useful when disambiguating types.

There is a new warning for missing type signatures on top-level declarations (@paf31)

There are new warnings for shadowed and unused type variables (@garyb)

Contextual information in warnings was improved (@garyb)

The qualified keyword is now optional when importing modules qualified (@michaelficarra)

@zudov changed the behavior of PSCi on CTRL+C/D to match GHCi and other REPLs.

A bug in row unification was fixed (#1310, @paf31)

Constrained types can now be defined without a forall keyword. This is useful in some nullary type class and rank-N scenarios. (@paf31)

Bug 修复

@garyb added some additional checks for transitive module exports.

Type synonyms are now expanded more eagerly to avoid some error cases in the type checker (@paf31)

Better support for multi-byte UTF-8 characters (@senju)

A check has been added to the exhaustivity checker to avoid exponential blowup (@paf31)

Empty case statements are no longer syntactically valid (@zudov)

其它

@aspidites fixed all compiler warnings in the core libraries.

@zudov and @phadej have made improvements to the Stack distribution of the compiler, and the Stackage builds.

@garyb has added a warning for operators in type classes, since they will be disallowed before 0.8.

PureScript 是个小巧而强大的静态类型语言,可以编译成 JavaScript。purescript 主要是由 Haskell 和 PureScript 编写的。

下载地址:https://github.com/purescript/purescript/releases/tag/v0.7.5

来自:开源中国社区
文章评论

共有 0 条评论