标签: reflex-dom

Haskell / cabal 包的解决方法受到 Nix 和 Cabal 的限制?

我最近开始使用reflex-platform进行开发,并使用了一些与优秀的reflex-project-sculpture中描述的类似的额外配置。

现在我遇到了无法解决的包冲突。我使用与 相同的 cabal 脚本,它通过 cabal 命令以非交互模式reflex-project-skeleton调用。nix-shell

如果我尝试

./cabal new-build --allow-newer all
Run Code Online (Sandbox Code Playgroud)

我明白了

these derivations will be built:
  /nix/store/d6ji516i7pry5l6gv18y6hpj9k1bvgg5-heist-1.0.1.0.drv
  /nix/store/zj1clks7mzq8gn91ahhwa3nvpi5rwra9-snap-1.0.0.2.drv
  /nix/store/mx861972jnjabn7yxyr3y3q1yhf25jfq-snaplet-acid-state-0.2.7.drv
  /nix/store/grhp4dhavmpi6bgns5a6vdzg8ny2bsf8-hoogle-local-0.1.drv
  /nix/store/y3sszsj58f6ad3r06540w0mlr1pncd59-ghc-8.0.2-with-packages.drv

...

Configuring heist-1.0.1.0...
Setup: Encountered missing dependencies:
aeson >=0.6 && <1.2

builder for '/nix/store/d6ji516i7pry5l6gv18y6hpj9k1bvgg5-heist-1.0.1.0.drv' failed with exit code 1
cannot build derivation '/nix/store/y3sszsj58f6ad3r06540w0mlr1pncd59-ghc-8.0.2-with-packages.drv': 1 dependencies couldn't be built
Run Code Online (Sandbox Code Playgroud)

有问题的包似乎是snaplet-acid-state,所以我尝试从 nix-shell 内部安装它:

cabal install snaplet-acid-state
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: snaplet-acid-state-0.2.7 (user goal)
trying: base-4.9.1.0/installed-4.9... (dependency of …
Run Code Online (Sandbox Code Playgroud)

haskell cabal-install nix reflex-dom

3
推荐指数
1
解决办法
1012
查看次数

标签 统计

cabal-install ×1

haskell ×1

nix ×1

reflex-dom ×1