如何安装unittyped和base-4.6.0.0?

Eri*_*ikR 1 haskell cabal haskell-platform

我安装了Haskell Platform 2012.4.0.0,我想尝试使用单元包.

当我尝试安装它时,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)
Run Code Online (Sandbox Code Playgroud)

cabal-dev -s some-dir install base-4.6.0.0产生类似的信息.

有没有办法克服这些错误?

Dan*_*her 5

unittyped软件包要求GHC> = 7.6,它使用DataKinds(好,DataKinds首先出现在7.4中,但实现还没有完成;也许unittyped还适用于7.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
Run Code Online (Sandbox Code Playgroud)

这可能会也可能不会奏效.

安全选项是安装ghc-7.6.1,但这意味着放弃Haskell平台.