Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 711 Bytes

File metadata and controls

51 lines (36 loc) · 711 Bytes

快速开始

安装:

# 安装 编译器 包管理器 格式化工具
npm install -g purescript spago purs-tidy

vscode插件:

https://marketplace.visualstudio.com/items?itemName=nwolverson.ide-purescript

vscode配置格式化插件:

{
  "purescript.formatter": "purs-tidy",
  "[purescript]": {
    "editor.defaultFormatter": "nwolverson.ide-purescript"
  },
}

找个空目录新建项目:

spago init

编译

spago build

运行

spago run

运行测试

spago test

* 如果在build时报错, 提示没有权限之类的, 多半是vscode的问题, 把vscode关掉再试就好了.