NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.07k stars 14.13k forks source link

in zero context, cabal-install elects ghc-mod-0.3.0, against the current 5.2.1.2 #7131

Closed deepfire closed 9 years ago

deepfire commented 9 years ago

With an empty ~/.cabal and ~/.ghc, executing cabal install happy shake genericpretty tuple interpolatedstring-perl6 missingh base-unicode-symbols ghc-mod elects the 0.3.0 version of ghc-mod, instead of 5.2.1.2.

configuration.nix environment.systemPackages (yes, I'm overlaying cabal-installed things atop the system packages):

    # haskell
    haskellngPackages.atto-lisp
    haskellngPackages.base-unicode-symbols
    haskellngPackages.cabal-install
    haskellngPackages.cabal2nix
    haskellngPackages.filestore
    haskellngPackages.GenericPretty
    haskellngPackages.ghc
    # haskellngPackages.ghc-mod
    haskellngPackages.ghc-mtl
    haskellngPackages.xmobar
    haskellngPackages.xmonad
    haskellngPackages.xmonad-contrib
    haskellngPackages.xmonad-extras
    haskellngPackages.yeganesh
[deepfire@andromedae:~]$  cabal install happy shake genericpretty tuple interpolatedstring-perl6 missingh base-unicode-symbols ghc-mod
Resolving dependencies...
Downloading GenericPretty-1.2.1...
Downloading HUnit-1.2.5.2...
Configuring GenericPretty-1.2.1...
Downloading OneTuple-0.2.1...
Configuring HUnit-1.2.5.2...
Downloading base-unicode-symbols-0.2.2.4...
Configuring base-unicode-symbols-0.2.2.4...
Downloading extra-1.1...
Downloading js-flot-0.8.3...
Configuring OneTuple-0.2.1...
Configuring extra-1.1...
Downloading js-jquery-1.11.2...
Building base-unicode-symbols-0.2.2.4...
Building GenericPretty-1.2.1...
Building HUnit-1.2.5.2...
Building OneTuple-0.2.1...
Building extra-1.1...
Installed base-unicode-symbols-0.2.2.4
Installed OneTuple-0.2.1
Installed GenericPretty-1.2.1
Installed HUnit-1.2.5.2
Installed extra-1.1
Downloading network-2.6.0.2...
Configuring js-jquery-1.11.2...
Downloading random-1.1...
Configuring js-flot-0.8.3...
Building js-jquery-1.11.2...
Building js-flot-0.8.3...
Downloading safe-0.3.8...
Configuring network-2.6.0.2...
Configuring random-1.1...
Downloading syb-0.4.4...
Building random-1.1...
Installed js-jquery-1.11.2
Configuring safe-0.3.8...
Downloading text-1.2.0.4...
Configuring syb-0.4.4...
Downloading th-lift-0.7.2...
Configuring th-lift-0.7.2...
Downloading transformers-0.4.3.0...
Building safe-0.3.8...
Building syb-0.4.4...
Downloading utf8-string-1...
Installed js-flot-0.8.3
Configuring text-1.2.0.4...
Configuring transformers-0.4.3.0...
Downloading tuple-0.3.0.2...
Building th-lift-0.7.2...
Configuring utf8-string-1...
Building text-1.2.0.4...
Building transformers-0.4.3.0...
Building utf8-string-1...
Configuring tuple-0.3.0.2...
Installed safe-0.3.8
Building tuple-0.3.0.2...
Installed th-lift-0.7.2
Building network-2.6.0.2...
Installed syb-0.4.4
Downloading th-expand-syns-0.3.0.6...
Configuring th-expand-syns-0.3.0.6...
Installed random-1.1
Building th-expand-syns-0.3.0.6...
Installed utf8-string-1
Installed th-expand-syns-0.3.0.6
Installed transformers-0.4.3.0
Downloading mtl-2.2.1...
Installed network-2.6.0.2
Configuring mtl-2.2.1...
Building mtl-2.2.1...
Installed tuple-0.3.0.2
Installed mtl-2.2.1
Downloading happy-1.19.5...
Downloading hslogger-1.2.8...
Configuring hslogger-1.2.8...
Downloading regex-base-0.93.2...
Downloading th-reify-many-0.1.3...
Configuring happy-1.19.5...
Building hslogger-1.2.8...
Configuring regex-base-0.93.2...
Configuring th-reify-many-0.1.3...
Building regex-base-0.93.2...
Building th-reify-many-0.1.3...
Building happy-1.19.5...
Installed th-reify-many-0.1.3
Installed regex-base-0.93.2
Downloading regex-posix-0.95.2...
Installed hslogger-1.2.8
Configuring regex-posix-0.95.2...
Building regex-posix-0.95.2...
Installed regex-posix-0.95.2
Downloading regex-compat-0.95.1...
Configuring regex-compat-0.95.1...
Building regex-compat-0.95.1...
Installed regex-compat-0.95.1
Installed happy-1.19.5
Installed text-1.2.0.4
Downloading hashable-1.2.3.2...
Downloading parsec-3.1.9...
Configuring hashable-1.2.3.2...
Downloading polyparse-1.11...
Configuring parsec-3.1.9...
Configuring polyparse-1.11...
Building hashable-1.2.3.2...
Building parsec-3.1.9...
Building polyparse-1.11...
Installed hashable-1.2.3.2
Downloading nats-1...
Downloading unordered-containers-0.2.5.1...
Configuring nats-1...
Configuring unordered-containers-0.2.5.1...
Building nats-1...
Building unordered-containers-0.2.5.1...
Installed nats-1
Downloading th-orphans-0.11.1...
Configuring th-orphans-0.11.1...
Building th-orphans-0.11.1...
Installed parsec-3.1.9
Downloading MissingH-1.3.0.1...
Configuring MissingH-1.3.0.1...
Building MissingH-1.3.0.1...
Installed polyparse-1.11
Downloading cpphs-1.19...
Installed unordered-containers-0.2.5.1
Downloading shake-0.15...
Configuring cpphs-1.19...
Building cpphs-1.19...
Configuring shake-0.15...
Building shake-0.15...
Installed th-orphans-0.11.1
Installed cpphs-1.19
Downloading haskell-src-exts-1.16.0.1...
Installed MissingH-1.3.0.1
Configuring haskell-src-exts-1.16.0.1...
Building haskell-src-exts-1.16.0.1...
Installed shake-0.15
Installed haskell-src-exts-1.16.0.1
Downloading ghc-mod-0.3.0...
Downloading haskell-src-meta-0.6.0.8...
Configuring ghc-mod-0.3.0...
Configuring haskell-src-meta-0.6.0.8...
Building ghc-mod-0.3.0...
Building haskell-src-meta-0.6.0.8...
Failed to install ghc-mod-0.3.0
Build log ( /home/deepfire/.cabal/logs/ghc-mod-0.3.0.log ):
Configuring ghc-mod-0.3.0...
Building ghc-mod-0.3.0...
Preprocessing executable 'ghc-mod' for ghc-mod-0.3.0...
[1 of 6] Compiling Param            ( Param.hs, dist/build/ghc-mod/ghc-mod-tmp/Param.o )
[2 of 6] Compiling Lang             ( Lang.hs, dist/build/ghc-mod/ghc-mod-tmp/Lang.o )
[3 of 6] Compiling List             ( List.hs, dist/build/ghc-mod/ghc-mod-tmp/List.o )
[4 of 6] Compiling Check            ( Check.hs, dist/build/ghc-mod/ghc-mod-tmp/Check.o )
[5 of 6] Compiling Browse           ( Browse.hs, dist/build/ghc-mod/ghc-mod-tmp/Browse.o )

Browse.hs:41:72:
    Not in scope: data constructor ‘ExplicitForall’
    Perhaps you meant ‘ExplicitForAll’ (imported from Language.Haskell.Exts.Extension)
Installed haskell-src-meta-0.6.0.8
Downloading interpolatedstring-perl6-0.9.0...
Configuring interpolatedstring-perl6-0.9.0...
Building interpolatedstring-perl6-0.9.0...
Installed interpolatedstring-perl6-0.9.0
cabal: Error: some packages failed to install:
ghc-mod-0.3.0 failed during the building phase. The exception was:
ExitFailure 1
peti commented 9 years ago

cabal-install constructs an install plan so that the dependency constraints of every to-be-installed package fit together. Apparently, newer versions of ghc-mod have requirements that are incompatible with with the package set you've requested.