本文介绍了安装反射dom可能会破坏ghcjs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用安装 reflex 和 reflex-dom code>我收到以下错误信息:

$ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ $ ...

cabal:以下包可能会被重新安装破坏:
lens-4.15.1
ghcjs-0.2.0
free-4.12 .4
kan-extensions-5.0.1
adjunctions-4.3
如果要继续安装,请使用--force-reinstalls。 GitHub上的

ghcjs 位于在master分支和,名为dedupe。而且我也害怕打破镜头。 有没有办法安装 reflex reflex-dom 以一致的方式?也许我需要更改 .cabal 文件






以下是终端的全部响应:

$ $ $ $ $ $ $ $ $ $ cabal install reflex-dom

解决依赖性...
为了安装以下内容:
bifunctors-5.3(latest:5.4.1)(via:reflex-dom-0.3 these-0.6。 2.1透镜-4.13.2.1 free-4.12.4 semigroupoids-5.0.1 profunctors-5.2)(新版本)
data-default-instances-base-0.1.0.1(via:data-default-0.5.3) (新版本)
data-default-0.5.3(latest:0.7.1.1)(via:reflex-dom-0.3)(新版本)
dependent-sum-0.3.2.2(latest:0.4 )(via:reflex-dom-0.3 reflex-0.4.0 dependent-sum-template-0.0.0.5 dependent-map-0.2.4.0)(new package)
dependent-map-0.2.4.0(via:reflex -dom-0.3反射-0.4.0)(新包装)
异常变压器-0.4.0.5(通过:reflex-dom-0.3 (新包)
haskell-src-exts-1.17.1(latest:1.19.1)(via:reflex-0.4.0 haskell-src-meta-0.6.0.14)(new版本)
haskell-src-meta-0.6.0.14(latest:0.7.0.1)(via:reflex-0.4.0)(新版本)
profunctors-5.2(via:these-0.6.2.1镜头-4.13.2.1辅助-4.3自由 - 4.12.4)(重新安装)(变化:bifunctors-5.4.1-> 5.3)
raw-strings-qq-1.1(via:reflex-dom-0.3)(新包)
ref-tf-0.4.0.1(via:reflex-dom-0.3 reflex-0.4.0 )(新包)
semigroupoids-5.0.1(latest:5.1)(via:these-0.6.2.1 lens-4.13.2.1 kan-extensions-5.0.1 adjunctions-4.3 free-4.12.4)(new版本)
free-4.12.4(via:lens-4.13.2.1 kan-extensions-5.0.1 adjunctions-4.3)(重新安装)(更改:bifunctors-5.4.1 - > 5.3,semigroupoids-5.1 - > 5.0.1)
adjunctions-4.3(通过:kan-extensions-5.0.1)(重新安装)(更改:semigroupoids-5.1 - > 5.0.1)
kan-extensions-5.0。 (经由:lens-4.13.2.1)(重新安装)(改变:semigroupoids-5.1-> 5.0.1)
lens-4.13.2.1(latest:4.15.1)(via:reflex-dom-0.3 )(新版本)
th-extras-0.0.0.4(通过:dependent-sum-template-0.0.0.5)(新包)
dependent-sum-template-0.0.0.5(via:reflex -dom-0.3)(新包装)
这些-0.6.2.1(最新版本:0.7.3)(via:reflex-dom-0.3 reflex-0.4.0)(新包装)
reflex-0.4 .0(via:reflex-dom-0.3)(新包)
utf8-stri ng-1.0.1.1(via:glib-0.13.4.1 cairo-0.13.3.1)(new package)
cairo-0.13.3.1(via:webkitgtk3-0.14.2.1 gtk3-0.14.6 pango-0.13.3.1 )(新包)
glib-0.13.4.1(通过:reflex-dom-0.3 webkitgtk3-javascriptcore-0.13.2.0 ghcjs-dom-0.2.4.0 webkitgtk3-0.14.2.1 gtk3-0.14.6 pango-0.13。 3.1 gio-0.13.3.1)(新包)
gio-0.13.3.1(via:gtk3-0.14.6)(新包)
pango-0.13.3.1(via:webkitgtk3-0.14.2.1 gtk3-0.14.6)(新包)
gtk3-0.14.6(via:reflex-dom-0.3 webkitgtk3-javascriptcore-0.13.2.0 ghcjs-dom-0.2.4.0 webkitgtk3-0.14.2.1) )
webkitgtk3-0.14.2.1(via:reflex-dom-0.3 webkitgtk3-javascriptcore-0.13.2.0 ghcjs-dom-0.2.4.0)(新包)
ghcjs-dom-0.2.4.0(latest :0.7.0.4)(via:reflex-dom-0.3)(新包)
webkitgtk3-javascriptcore-0.13.2.0(最新版:0.14.2.1)(via:reflex-dom-0.3) b $ b reflex-dom-0.3(新包)
cabal:以下包可能会被重新安装打破:
镜头-4.15.1
ghcjs-0.2.0
如果要继续安装,请使用--force-reinstalls。

以及类似的安装反射



<$ p $
bifunctors-5.3(latest:5.4。)
为了安装以下内容:
bifunctors-5.3(latest:5.4。 1)(via:这些-0.6.2.1 semigroupoids-5.0.1 profunctors-5.2)(新版本)
dependent-sum-0.3.2.2(latest:0.4)(via:reflex-0.4.0 dependent-map -0.2.4.0)(新包)
dependent-map-0.2.4.0(通过:reflex-0.4.0)(新包)
异常变换器-0.4.0.5(通过:reflex-0.4 .0)(新包)
haskell-src-exts-1.17.1(latest:1.19.1)(via:reflex-0.4.0 haskell-src-meta-0.6.0.14)(新版本)
haskell-src-meta-0.6.0.14(latest:0.7.0.1)(via:reflex-0.4.0)(新版本)
profunctors-5.2(via:these-0.6.2.1)(重新安装)(更新:bifunctors-5.4.1 - > 5.3)
ref-tf-0.4.0.1(via:reflex-0.4.0)(新包)
semigroupoids-5.0.1(latest: 5.1)(通过:这些-0.6.2.1)(新版本)
这些-0.6.2.1(最新版本:0.7.3)(via:reflex-0.4 .0)(新包装)
reflex-0.4.0(新包装)
cabal:以下包装可能会因重装而损坏:
lens-4.15.1
ghcjs-0.2.0
free-4.12.4
kan-extensions-5.0.1
adjunctions-4.3
如果要继续安装,请使用--force-reinstalls。


解决方案

我知道安装反射和reflex-dom(和ghcjs)在linux环境中的一致方式是遵循上。

这个过程相当于克隆reflex-platform存储库并在该存储库内运行脚本try-reflex。 try-reflex脚本启动一个你可以运行的shell,ghcjs将完全访问reflex / reflex-dom。这个外壳环境独立于您以前安装在您的计算机上的所有内容,因此您不必担心会混淆隐形眼镜或任何其他已有的cabal包。


I am trying to install reflex and reflex-dom using cabal install I got the following error messages:

$ cabal install reflex-dom

...

cabal: The following packages are likely to be broken by the reinstalls:
lens-4.15.1
ghcjs-0.2.0
free-4.12.4
kan-extensions-5.0.1
adjunctions-4.3
Use --force-reinstalls if you want to install anyway.

ghcjs on GitHub is at 0.2.0 on the "master" branch and 0.2.1 on a branch called "dedupe". And I am also scared of breaking lens. Is there any way to install reflex and reflex-dom in a consistant way? Maybe I need to change the .cabal file


Here is the full response from terminal

$ cabal install reflex-dom

Resolving dependencies...
In order, the following would be installed:
bifunctors-5.3 (latest: 5.4.1) (via: reflex-dom-0.3 these-0.6.2.1 lens-4.13.2.1 free-4.12.4 semigroupoids-5.0.1 profunctors-5.2) (new version)
data-default-instances-base-0.1.0.1 (via: data-default-0.5.3) (new package)
data-default-0.5.3 (latest: 0.7.1.1) (via: reflex-dom-0.3) (new version)
dependent-sum-0.3.2.2 (latest: 0.4) (via: reflex-dom-0.3 reflex-0.4.0 dependent-sum-template-0.0.0.5 dependent-map-0.2.4.0) (new package)
dependent-map-0.2.4.0 (via: reflex-dom-0.3 reflex-0.4.0) (new package)
exception-transformers-0.4.0.5 (via: reflex-dom-0.3 reflex-0.4.0) (new package)
haskell-src-exts-1.17.1 (latest: 1.19.1) (via: reflex-0.4.0 haskell-src-meta-0.6.0.14) (new version)
haskell-src-meta-0.6.0.14 (latest: 0.7.0.1) (via: reflex-0.4.0) (new version)
profunctors-5.2 (via: these-0.6.2.1 lens-4.13.2.1 adjunctions-4.3 free-4.12.4) (reinstall) (changes: bifunctors-5.4.1 -> 5.3)
raw-strings-qq-1.1 (via: reflex-dom-0.3) (new package)
ref-tf-0.4.0.1 (via: reflex-dom-0.3 reflex-0.4.0) (new package)
semigroupoids-5.0.1 (latest: 5.1) (via: these-0.6.2.1 lens-4.13.2.1 kan-extensions-5.0.1 adjunctions-4.3 free-4.12.4) (new version)
free-4.12.4 (via: lens-4.13.2.1 kan-extensions-5.0.1 adjunctions-4.3) (reinstall) (changes: bifunctors-5.4.1 -> 5.3, semigroupoids-5.1 -> 5.0.1)
adjunctions-4.3 (via: kan-extensions-5.0.1) (reinstall) (changes: semigroupoids-5.1 -> 5.0.1)
kan-extensions-5.0.1 (via: lens-4.13.2.1) (reinstall) (changes: semigroupoids-5.1 -> 5.0.1)
lens-4.13.2.1 (latest: 4.15.1) (via: reflex-dom-0.3) (new version)
th-extras-0.0.0.4 (via: dependent-sum-template-0.0.0.5) (new package)
dependent-sum-template-0.0.0.5 (via: reflex-dom-0.3) (new package)
these-0.6.2.1 (latest: 0.7.3) (via: reflex-dom-0.3 reflex-0.4.0) (new package)
reflex-0.4.0 (via: reflex-dom-0.3) (new package)
utf8-string-1.0.1.1 (via: glib-0.13.4.1 cairo-0.13.3.1) (new package)
cairo-0.13.3.1 (via: webkitgtk3-0.14.2.1 gtk3-0.14.6 pango-0.13.3.1) (new package)
glib-0.13.4.1 (via: reflex-dom-0.3 webkitgtk3-javascriptcore-0.13.2.0 ghcjs-dom-0.2.4.0 webkitgtk3-0.14.2.1 gtk3-0.14.6 pango-0.13.3.1 gio-0.13.3.1) (new package)
gio-0.13.3.1 (via: gtk3-0.14.6) (new package)
pango-0.13.3.1 (via: webkitgtk3-0.14.2.1 gtk3-0.14.6) (new package)
gtk3-0.14.6 (via: reflex-dom-0.3 webkitgtk3-javascriptcore-0.13.2.0 ghcjs-dom-0.2.4.0 webkitgtk3-0.14.2.1) (new package)
webkitgtk3-0.14.2.1 (via: reflex-dom-0.3 webkitgtk3-javascriptcore-0.13.2.0 ghcjs-dom-0.2.4.0) (new package)
ghcjs-dom-0.2.4.0 (latest: 0.7.0.4) (via: reflex-dom-0.3) (new package)
webkitgtk3-javascriptcore-0.13.2.0 (latest: 0.14.2.1) (via: reflex-dom-0.3) (new package)
reflex-dom-0.3 (new package)
cabal: The following packages are likely to be broken by the reinstalls:
lens-4.15.1
ghcjs-0.2.0
Use --force-reinstalls if you want to install anyway.

and similar for installing reflex

$ cabal install reflex

Resolving dependencies...
In order, the following would be installed:
bifunctors-5.3 (latest: 5.4.1) (via: these-0.6.2.1 semigroupoids-5.0.1 profunctors-5.2) (new version)
dependent-sum-0.3.2.2 (latest: 0.4) (via: reflex-0.4.0 dependent-map-0.2.4.0) (new package)
dependent-map-0.2.4.0 (via: reflex-0.4.0) (new package)
exception-transformers-0.4.0.5 (via: reflex-0.4.0) (new package)
haskell-src-exts-1.17.1 (latest: 1.19.1) (via: reflex-0.4.0 haskell-src-meta-0.6.0.14) (new version)
haskell-src-meta-0.6.0.14 (latest: 0.7.0.1) (via: reflex-0.4.0) (new version)
profunctors-5.2 (via: these-0.6.2.1) (reinstall) (changes: bifunctors-5.4.1 -> 5.3)
ref-tf-0.4.0.1 (via: reflex-0.4.0) (new package)
semigroupoids-5.0.1 (latest: 5.1) (via: these-0.6.2.1) (new version)
these-0.6.2.1 (latest: 0.7.3) (via: reflex-0.4.0) (new package)
reflex-0.4.0 (new package)
cabal: The following packages are likely to be broken by the reinstalls:
lens-4.15.1
ghcjs-0.2.0
free-4.12.4
kan-extensions-5.0.1
adjunctions-4.3
Use --force-reinstalls if you want to install anyway.
解决方案

The best way that I know of to install reflex and reflex-dom (and ghcjs too) in a consistent way on a linux environment is to follow the setup instructions on the reflex-platform readme .

The process amounts to cloning the reflex-platform repository and running a script, "try-reflex" from inside that repository. The try-reflex script starts a shell from which you can run ghcjs will full access to reflex/reflex-dom . This shell environment is independent of what you previously installed on your computer so you don't have to worry about messing up lenses or any other cabal package you already have in place.

这篇关于安装反射dom可能会破坏ghcjs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 19:11