如何使用haskell stack 1.2,nix和ghcjs

时间:2016-10-21 16:22:45

标签: haskell haskell-stack nix ghcjs

当我尝试使用最新版本的堆栈构建此repo时:

λ ~/repos/ghcjs-typeahead/src/Typeahead/ master* stack --version                      ~/repos/ghcjs-typeahead/src/Typeahead
Version 1.2.0 x86_64

我收到此错误:

λ ~/repos/ghcjs-typeahead/src/Typeahead/ master* stack build                          ~/repos/ghcjs-typeahead/src/Typeahead
Only GHC is supported by now by stack --nix

这是因为我的stack.yaml看起来像这样:

resolver: nightly-2016-08-26
compiler: ghcjs-0.2.0.820160826_ghc-8.0.1
compiler-check: match-exact
setup-info:
  ghcjs:
    source:
      ghcjs-0.2.0.820160826_ghc-8.0.1:
        url: "http://tolysz.org/ghcjs/ghc-8.0-2016-08-26-nightly-2016-08-26-820160826.tar.gz"
        sha1: "2ecd8523cafe22b3033726363b4acc5356117970"
nix:
  enable: true
  shell-file: shell.nix
packages:
- location: '.'
- location:
    git:  https://github.com/ryantrinkle/reflex.git
    commit: a63aba90bdea5ae5b3e1506d468613bdfedcdfa3
  extra-dep: true
- location:
    git: https://github.com/ryantrinkle/reflex-dom.git
    commit: ed3b790f81f8396324fc9a3495de9c911119facc
  extra-dep: true
extra-deps:
- ghcjs-dom-0.2.4.0
- ref-tf-0.4.0.1
- zenc-0.1.1

非常不幸的是,他们删除了对我正在使用的方法的支持,还有其他方法可以使用stack,nix和ghcjs吗?我是否必须回到使用阴谋集?

0 个答案:

没有答案