スタックを介してGHCをインストールしました(stack ghc -- --version
GHC-7.10.3 を示しています)
$ stack install ghcjs
Run from outside a project, using implicit global project config
Using resolver: lts-5.2 from implicit global project's config file: /home/john/.stack/global-project/stack.yaml
The following target packages were not found: ghcjs
一部のリソースは、やや実験的であることを示唆してghcjs
います(ただし、さらなる段階にあります)。
http://docs.haskellstack.org/en/stable/ghcjs/を見て、見つけstack.yaml
て変更できるかもしれないと思いました。
stack >= 0.1.8 で GHCJS を使用するには、stack.yaml の compiler フィールドに GHCJS バージョンを配置します。
stack setup
$ cat ~/.stack/global-project/stack.yaml
# This is the implicit global project's config file, which is only used when
# 'stack' is run outside of a real project. Settings here do _not_ act as
# defaults for all projects. To change stack's default settings, edit
# '/home/john/.stack/config.yaml' instead.
#
# For more information about stack's configuration, see
# http://docs.haskellstack.org/en/stable/yaml_configuration.html
#
flags: {}
extra-package-dbs: []
packages: []
extra-deps: []
resolver: lts-5.2
config.yaml
どちらが同じように空白に見えるかを見るように言われます。これは正しいですか、私は行き止まりに行きますか?
$ cat ~/.stack/config.yaml
# This file contains default non-project-specific settings for 'stack', used
# in all projects. For more information about stack's configuration, see
# http://docs.haskellstack.org/en/stable/yaml_configuration.html
#
{}
ghcjs
スタックでインストールしたいだけです。