1

Haskell Platform 2012.4.0.0をインストールしていて、unittypedパッケージを試してみたいと思います。

でインストールしようとするとcabal-dev -s some-dir install unittyped、次のエラーが発生します。

$ cabal-dev -s some-dir install unittyped
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: unittyped-0.1 (user goal)
next goal: base (dependency of unittyped-0.1)
rejecting: base-3.0.3.2, 3.0.3.1 (global constraint requires installed
instance)
rejecting: base-4.5.1.0/installed-724... (conflict: unittyped => base>=4.6 && <4.7)
rejecting: base-4.6.0.0, 4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0, 4.3.1.0, 4.3.0.0,
4.2.0.2, 4.2.0.1, 4.2.0.0, 4.1.0.0, 4.0.0.0 (global constraint requires installed instance)

cabal-dev -s some-dir install base-4.6.0.0同様のメッセージが表示されます。

これらのエラーを乗り越える方法はありますか?

4

1 に答える 1

5

unittypedパッケージにはGHC>=7.6が必要であり、使用し(DataKinds7.4でDataKinds最初に登場しましたが、実装はまだ完了していません。おそらくunittyped7.4でも機能します)、明示的にに依存しbase >= 4.6 && < 4.7ます。

上で括弧内に述べたように、それはghc-7.4でも機能し、それをテストする可能性があります

$ cabal unpack unittyped
$ cd unittyped-0.1
-- edit the .cabal file to allow base-4.5.*
-- and bump the version, so that cabal doesn't think it cannot work with base-4.5.*
$ cabal install

それはうまくいくかもしれないし、うまくいかないかもしれない。

安全なオプションはghc-7.6.1をインストールすることですが、それはHaskellプラットフォームを削除することを意味します。

于 2012-11-28T03:28:27.033 に答える