[Haskell-cafe] How to cabal fetch mtl==

Bas van Dijk v.dijk.bas at gmail.com
Fri Nov 26 00:24:26 CET 2010

On Thu, Nov 25, 2010 at 2:52 AM, Iain Alexander <ia at stryx.demon.co.uk> wrote:
> <log>
> F:\Util\Haskell>cabal fetch mtl==
> Resolving dependencies...
> cabal: internal error: could not construct a valid install plan.
> The proposed (invalid) plan contained the following problems:
> The following packages are involved in a dependency cycle transformers-,
> special-functors-1.0, mtl-
> F:\Util\Haskell>cabal -V
> cabal-install version 0.8.2
> using version of the Cabal library
> </log>
> Could someone please remind me of the correct incantation to make this work.
> (I observe that transformers- optionally (by cabal flag) depends on
> special-functors, and special-functors-1.0 depends on mtl.  So given that mtl-2
> no doubt depends on transformers, I can see the potential for confusion, but
> there presumably must be a way of breaking the (apparent) loop.)
> TIA,
> Iain.
> --
> Iain Alexander      ia at stryx.demon.co.uk
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

Maybe it helps if special-functors gets an upper bound on its mtl
dependency: mtl < 2.

BTW what is you ghc --version?

Because I have no problems fetching mtl-2:

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.12.1

$ cabal --version
cabal-install version 0.8.0
using version of the Cabal library

$ cabal fetch mtl==
Resolving dependencies...
Downloading mtl-



More information about the Haskell-Cafe mailing list