[arch-haskell] Can't install cabal-install

Marcelo Garlet Millani mgmillani at inf.ufrgs.br
Tue Apr 15 21:39:15 UTC 2014


Hello,

Trying to install cabal-install through cabal is not working for me. When compiling the module:
HTTP-4000.2.4

the following error occurs:
Network/HTTP/Auth.hs:192:49:
    Couldn't match expected type `Maybe URI' with actual type `URI'
    In the second argument of `fromMaybe', namely
      `(u `relativeTo` baseURI)'
    In the expression: fromMaybe u (u `relativeTo` baseURI)
    In the first argument of `map', namely
      `(\ u -> fromMaybe u (u `relativeTo` baseURI))'



My version of cabal is (installed from extra, not from haskell-core):
cabal-install version 1.18.0.2
using version 1.18.1 of the Cabal library

The output of `cabal install cabal-install` is:
-----
Resolving dependencies...
Downloading Cabal-1.18.1.3...
Downloading stm-2.4.3...
Configuring stm-2.4.3...
Downloading text-1.1.0.1...
Downloading zlib-0.5.4.1...
Configuring text-1.1.0.1...
Configuring Cabal-1.18.1.3...
Configuring zlib-0.5.4.1...
Building zlib-0.5.4.1...
Building text-1.1.0.1...
Building stm-2.4.3...
Installed stm-2.4.3
Installed zlib-0.5.4.1
Building Cabal-1.18.1.3...
Installed text-1.1.0.1
Downloading parsec-3.1.5...
Configuring parsec-3.1.5...
Building parsec-3.1.5...
Installed parsec-3.1.5
Downloading network-2.5.0.0...
Configuring network-2.5.0.0...
Building network-2.5.0.0...
Installed network-2.5.0.0
Downloading HTTP-4000.2.4...
Configuring HTTP-4000.2.4...
Building HTTP-4000.2.4...
Failed to install HTTP-4000.2.4
Last 10 lines of the build log ( /home/marcelo/.cabal/logs/HTTP-4000.2.4.log ):
[12 of 18] Compiling Network.StreamSocket ( Network/StreamSocket.hs, dist/build/Network/StreamSocket.o )
[13 of 18] Compiling Network.HTTP.Auth ( Network/HTTP/Auth.hs, dist/build/Network/HTTP/Auth.o )

Network/HTTP/Auth.hs:192:49:
    Couldn't match expected type `Maybe URI' with actual type `URI'
    In the second argument of `fromMaybe', namely
      `(u `relativeTo` baseURI)'
    In the expression: fromMaybe u (u `relativeTo` baseURI)
    In the first argument of `map', namely
      `(\ u -> fromMaybe u (u `relativeTo` baseURI))'
Installed Cabal-1.18.1.3
cabal: Error: some packages failed to install:
HTTP-4000.2.4 failed during the building phase. The exception was:
ExitFailure 1
cabal-install-1.18.0.3 depends on HTTP-4000.2.4 which failed to install.
-----

I don't know why it's trying to install HTTP-4000.2.4 when the newest version is 4000.2.12 and cabal-install depends on HTTP >= 4000.0.8 && < 4001 .

Is there anything I can do to fix this problem?

Best regards,
Marcelo Millani


More information about the arch-haskell mailing list