使用 Haskell Stack 初始化 GHCJS 项目需要做什么?
按照堆栈文档,我尝试初始化一个 GHCJS 项目,以便可以将 Haskell 代码编译为 JavaScript。
完成后stack templates我看到有一个 GHCJS 模板
ghcjs - Haskell to JavaScript compiler, based on GHC
Run Code Online (Sandbox Code Playgroud)
当我尝试使用此模板的新命令时,如下所示:
stack new ghcjsSetup ghcjs
我收到此错误消息:
Downloading template "ghcjs" to create project "ghcjsSetup" in ghcjsSetup/ ...
The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username
You can provide them in /home/u/.stack/config.yaml, like this:
templates:
params:
author-email: value
author-name: value
category: value
copyright: value
github-username: …Run Code Online (Sandbox Code Playgroud)