我通过堆栈安装了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并改变它。
若要在堆栈>= 0.1.8中使用GHCJS,请将GHCJS版本放在stack.yaml的编译器字段中。然后是
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。
发布于 2016-05-16 13:27:37
看看这个页面:http://docs.haskellstack.org/en/stable/ghcjs/
我试着:
stack new js-testresolver:更改为lts-5.12 -这与上面的节相匹配。stack setup以安装编译器。第四步需要一段时间。
https://stackoverflow.com/questions/37254692
复制相似问题