http://docs.haskellstack.org/en/stable/ghcjs.htmlの指示に従って、GHCJS をコンパイラとして NixOS に新しい Stack プロジェクトをセットアップしようとしています。
stack.yaml ファイルに次のコード行を含めました (タブ スペースで問題が発生するため、すべて 1 行で記述します)。
# 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
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"
実行したときに次のエラーメッセージを取得しましたstack setup
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.
setup-info
さらに、スタックがフィールドについて不平を言っていたため、フィールドを削除しようとしましたが、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
stack setup コマンドで次の出力が生成されます。
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
なぜこれが起こるのか誰にも分かりますか?