4
安裝ghcjs我通過安裝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
與堆棧。
我不能把一個複選標記因爲它仍然安裝:-) –
我的'堆疊安裝程序'剛剛完成,所以掛在那裏! – ErikR