Haskell 尝试使用GHCJS编译器创建新堆栈项目时出错

Haskell 尝试使用GHCJS编译器创建新堆栈项目时出错,haskell,haskell-stack,ghcjs,Haskell,Haskell Stack,Ghcjs,我正试图在NixOS上建立一个新的堆栈项目,使用GHCJS作为编译器,按照 我在stack.yaml文件中包含了以下几行代码(都在一行中,因为制表符空格似乎给出了一些问题): 当我运行堆栈设置时,检索到以下错误消息 Could not parse '/home/lorkaan/pandocJS/stack.yaml': InvalidYaml (Just (YamlParseException {yamlProblem = "mapping values are not allowed in t

我正试图在NixOS上建立一个新的堆栈项目,使用GHCJS作为编译器,按照

我在stack.yaml文件中包含了以下几行代码(都在一行中,因为制表符空格似乎给出了一些问题):

当我运行
堆栈设置时,检索到以下错误消息

Could not parse '/home/lorkaan/pandocJS/stack.yaml':
InvalidYaml (Just (YamlParseException {yamlProblem = "mapping values are not allowed in this context", yamlContext = "", yamlProblemMark = YamlMark {yamlIndex = 487, yamlLine = 12, yamlColumn = 17}}))
See https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md.
此外,我尝试删除
设置信息
字段,因为Stack对此表示不满,留下
Stack.yaml
文件如下:

# Compiler specifying the GHCJS compiler for this project (using improved base).
compiler: ghcjs-0.2.0.20151230.3_ghc-7.10.2
compiler-check: match-exact
它使用堆栈设置命令生成此输出:

Warning: /home/lorkaan/pandocJS/stack.yaml: Unrecognized field in ProjectAndConfigMonoid: compiler
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.                 
The following executables are missing and must be installed: make
有人知道为什么会这样吗

  • 第一个错误是因为YAML配置中存在基本语法错误。正确的版本是:
  • 第二个错误正是因为它所说的:您缺少
    make
    实用程序。您需要使用Linux发行版的软件包管理系统来安装
    make
    。由于我不知道您使用的是哪个发行版,我只能建议您只需执行
    $make
    命令,看看环境是否足够智能,以指出可以在哪个包中找到它。Ubuntu通常会这样做。然后,只需在CentOS和Fedora等设备上安装软件包,或者可能在CentOS和Fedora上安装
  • 像你这样的问题通常会因为在诊断问题时没有表现出足够的努力(或者在一个问题下放置两个完全不同的问题)而被否决,但我给你一个怀疑的好处,只是希望你下次会更整洁

  • 第一个错误是因为YAML配置中存在基本语法错误。正确的版本是:
  • 第二个错误正是因为它所说的:您缺少
    make
    实用程序。您需要使用Linux发行版的软件包管理系统来安装
    make
    。由于我不知道您使用的是哪个发行版,我只能建议您只需执行
    $make
    命令,看看环境是否足够智能,以指出可以在哪个包中找到它。Ubuntu通常会这样做。然后,只需在CentOS和Fedora等设备上安装软件包,或者可能在CentOS和Fedora上安装
  • 像你这样的问题通常会因为在诊断问题时没有表现出足够的努力(或者在一个问题下放置两个完全不同的问题)而被否决,但我给你一个怀疑的好处,只是希望你下次会更整洁

    Warning: /home/lorkaan/pandocJS/stack.yaml: Unrecognized field in ProjectAndConfigMonoid: compiler
    Preparing to install GHC to an isolated location.
    This will not interfere with any system-level installation.
    Already downloaded.                 
    The following executables are missing and must be installed: make
    
    setup-info: 
        ghcjs:
            source: 
                ghcjs-0.2.0.20151230.3_ghc7.10.2: 
                    url: "https://github.com/nrolland/ghcjs/releases/download/v.0.2.0.20151230.3/ghcjs-0.2.0.20151230.3.tar.gz"