您现在的位置是:首页 > 文章详情

PureScript v0.15.8 发布,小巧而强大的静态类型语言

日期:2023-03-07点击:300

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

新功能:

  • 生成的文档现在支持 dark 模式(#4438)。PureScript 文档有一个新的 dark 主题可用。它将根据你的浏览器或系统的配色方案偏好自动使用。

Bug 修复:

  • 修复 instance deriving regression(#4432)

  • 当类型不匹配时输出 type-error 发生的 label(#4411)

  • 检查值声明时考虑 typed holes(#4437)。现在,编译器在为类型检查的值声明排序时会考虑 typed holes,从而允许建议更多 top-level values,而不是受限于 reverse lexicographical ordering。

Given:

 module Main where newtype K = K Int aRinku :: Int -> K aRinku = K bMaho :: K bMaho = ?help 0 cMuni :: Int -> K cMuni = K dRei :: Int -> K dRei _ = bMaho

Before:

  Hole 'help' has the inferred type Int -> K You could substitute the hole with one of these values: Main.cMuni :: Int -> K Main.K :: Int -> K 

After:

  Hole 'help' has the inferred type Int -> K You could substitute the hole with one of these values: Main.aRinku :: Int -> K Main.cMuni :: Int -> K Main.K :: Int -> K 

Other improvements:

  • 将 Stackage snapshot 升级到 lts-20.9,将 GHC 升级到 9.2.5(#4422#4428 和 #4433)

Internal

  • 将 license/changelog scrips 更新到最新的 Stack 解析器(#4445)

更新说明:https://github.com/purescript/purescript/releases/tag/v0.15.8 

 

原文链接:https://www.oschina.net/news/231610/purescript-0-15-8-released
关注公众号

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。

持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。

转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。

文章评论

共有0条评论来说两句吧...

文章二维码

扫描即可查看该文章

点击排行

推荐阅读

最新文章