1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 PureScript v0.10.0 rc1 发布,静态类型语言 下载

本帖由 漂亮的石头2016-09-25 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,979
    赞:
    47
    PureScript 是个小巧而强大的静态类型语言,可以编译成 JavaScript。purescript 主要是由 Haskell 和 PureScript 编写的。

    v0.10.0-rc.1 更新内容如下:

    主要变化:

    The new functional dependencies feature fixes type inference in some cases involving multi-parameter type classes. However, due to a bug in the compiler, some of those expressions were previously type checking where they should not have. As a result, it is necessary to add functional dependencies to some classes in order to make previous code type-check in some cases. Known examples are:


    • MonadEff and MonadAff


    • MonadState, MonadReader, and the rest of the MTL-style classes in transformers

    These libraries will be updated before the final release of 0.10.*, but you might experience some issues in the meantime.

    新功能:

    Data.Newtype Deriving


    It is now possible to derive the Newtype class for any data declaration which is a newtype, using the existing deriving instance syntax:

    newtype Test = Test String

    derive instance newtypeTest :: Newtype Test _

    Note that the second type argument should be specified as a wildcard, and will be inferred.

    完整版更新内容请查看:https://github.com/purescript/purescript/releases

    下载地址:

    PureScript v0.10.0 rc1 发布,静态类型语言下载地址
     
正在加载...