发布于 2015-10-21 00:28:12 | 91 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的精品教程,程序狗速度看过来!

PureScript 静态类型语言

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


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 <input files> +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.

更多内容及下载页面:v0.7.5

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



历史版本 :
PureScript 0.11.6 发布,静态类型语言
PureScript 0.11.4 发布,静态类型语言
PureScript 0.11.3 发布,静态类型语言
PureScript 0.11.2 发布,静态类型语言
PureScript 0.11.1 发布,静态类型语言
PureScript 0.11.0 发布,静态类型语言
PureScript 0.11.0-rc.1 发布,静态类型语言
PureScript 0.10.7 发布,静态类型语言
PureScript 0.10.6 发布,静态类型语言
PureScript 0.10.5 发布,静态类型语言
PureScript 0.10.4 发布,静态类型语言
PureScript 0.10.3 发布,静态类型语言
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务