PureScript v0.15.8 发布了。PureScript 是个小巧而强大的静态类型语言,可以编译成 JavaScript。PureScript 主要是由 Haskell 和 PureScript 编写的。
新功能:
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
还没有评论,来说两句吧...