如何构建允许我使用reflex-frp作为依赖项目构建项目的堆栈配置? [英] How do I build stack configuration that allows me to build project with reflex-frp as dependency?

查看:111
本文介绍了如何构建允许我使用reflex-frp作为依赖项目构建项目的堆栈配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如问题所在。我无法获得工作堆栈配置。我想要构建使用ghc反射的项目,最好是8.0.2或更高。
我该怎么做,因为指定它作为一个额外的代价似乎也不工作。 >看起来没有发布的版本 reflex 支持ghc 8.0.2。从0.4版本开始, develop 分支上有很多变化: https://github.com/reflex-frp/reflex/compare/cc62c11a6cde31412582758c236919d4bb766ada...develop



首先我试过这个:

 解析器:lts-9.5 

包装:
- 。
- location:
git:https://github.com/reflex-frp/reflex
commit:916c876
extra-dep:true



但是导致:

 错误:构建构建计划时,遇到以下异常:

在reflex-0.5.0的依赖关系中:
prim-uniq必须匹配> = 0.1.0.1&& amp ; < 0.2,但堆栈配置没有指定的版本
(最新适用的是0.1.0.1)
ref-tf必须匹配== 0.4。*,但堆栈配置没有指定版本(最新适用是0.4.0.1)由于hmm-0.1.0.0需要
- > reflex-0.5.0

建议操作:尝试将以下内容添加到/home/mgsloan/fpco/test-stack/stackoverflow46391975/hmm/stack.yaml:
- prim-uniq-0.1.0.1
- ref-tf-0.4.0.1

继推荐的操作会产生一个可用的配置:

 解析器:lts-9.5 

包装:
- 。
- 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


As in question. I can't get working stack configuration. I want to build project that uses reflex with ghc, preferably 8.0.2 or higher. How do I do it, cause specifying it as an extra deps doesn't seem to work either..

解决方案

Looks like no published version of reflex supports ghc 8.0.2. There are a lot of changes on the develop branch since the 0.4 release: https://github.com/reflex-frp/reflex/compare/cc62c11a6cde31412582758c236919d4bb766ada...develop

So first I tried this:

resolver: lts-9.5

packages:
- .
- location:
    git: https://github.com/reflex-frp/reflex
    commit: 916c876
  extra-dep: true

But that led to:

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

Following the recommended action yields a configuration that works:

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

这篇关于如何构建允许我使用reflex-frp作为依赖项目构建项目的堆栈配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆