如何构建堆栈配置以允许我使用 reflex-frp 作为依赖项构建项目?

How do I build stack configuration that allows me to build project with reflex-frp as dependency?

如题。我无法获得工作堆栈配置。我想构建使用 reflex 和 ghc 的项目,最好是 8.0.2 或更高版本。 我该怎么做,因为将其指定为额外的 deps 似乎也不起作用..

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/Whosebug46391975/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