1
如有問題。我無法獲得工作堆棧配置。我想要構建使用ghc反射的項目,最好是8.0.2或更高。 我該怎麼做,因爲指定它作爲一個額外的代價似乎不工作要麼..如何構建允許我使用reflex-frp作爲依賴項目生成項目的堆棧配置?
如有問題。我無法獲得工作堆棧配置。我想要構建使用ghc反射的項目,最好是8.0.2或更高。 我該怎麼做,因爲指定它作爲一個額外的代價似乎不工作要麼..如何構建允許我使用reflex-frp作爲依賴項目生成項目的堆棧配置?
看起來像沒有發佈的版本的reflex
支持ghc 8.0.2。有很多自0.4版本上develop
分支的變化:https://github.com/reflex-frp/reflex/compare/cc62c11a6cde31412582758c236919d4bb766ada...develop
所以首先我嘗試這樣做:
resolver: lts-9.5
packages:
- .
- location:
git: https://github.com/reflex-frp/reflex
commit: 916c876
extra-dep: true
但是,這導致:
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for reflex-0.5.0:
prim-uniq must match >=0.1.0.1 && <0.2, but the stack configuration has no specified version
(latest applicable is 0.1.0.1)
ref-tf must match ==0.4.*, but the stack configuration has no specified version (latest applicable is 0.4.0.1)
needed due to hmm-0.1.0.0 -> reflex-0.5.0
Recommended action: try adding the following to your extra-deps in /home/mgsloan/fpco/test-stack/stackoverflow46391975/hmm/stack.yaml:
- prim-uniq-0.1.0.1
- ref-tf-0.4.0.1
遵循建議的行動產量一個工作的配置:
resolver: lts-9.5
packages:
- .
- location:
git: https://github.com/reflex-frp/reflex
commit: 916c876
extra-dep: true
extra-deps:
- prim-uniq-0.1.0.1
- ref-tf-0.4.0.1
我以爲我曾嘗試過,但一個pparently我一定做了一些有點不同,例如除了指定反射包,我也把它放在extra-deps ..大聲笑 反正..它的工作!謝謝 :) –