PureScript 0.6.5 发布,此版本现已提供下载,更新内容如下: 增强 支持轻量级 record constructors (@garyb): person :: Maybe String -> Maybe Number -> Maybe Address -> Maybe Person person = { name: _, age: _, location: _ } <$> name <*> age <*> location 支持 Field accessor sections (@garyb): getPersonName :: Maybe String getPersonName = (.name) <$> getPersonInfo 对象更新函数引入语法糖: updateName :: Person -> String -> Person updateName person = person { name = _ } 支持 Operator sections (@garyb) Bug 修复 Some command line options were fixed in psc-make (@paulyoung) Some module import errors were fixed (@garyb) A typechecker bug related to row synonyms was fixed (#795, @paf31) PureScript 是个小巧而强大的静态类型语言,可以编译成 JavaScript。purescript 主要是由 Haskell 和 PureScript 编写的。 PureScript 示例代码: module Main where import Debug.Trace main = trace "Hello, World!" 编译成 JavaScript 代码: var PS = PS || {}; PS.Main = (function () { "use strict"; var Debug_Trace = PS.Debug_Trace; var main = Debug_Trace.trace("Hello, World!"); return { main: main }; })(); PureScript 0.6.5 发布,静态类型语言下载地址