
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

On Tue, Apr 15, 2014 at 11:39:15PM +0200, Marcelo Garlet Millani wrote:
Hello,
Trying to install cabal-install through cabal is not working for me. When compiling the module: HTTP-4000.2.4
[...]
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?
I'm no user of cabal myself, but a few days ago when I thought I'd take a look at the sandboxing feature of it I ran into a similar situation, cabal wanted to install an older version of some package for no apparent reason. I just gave up and decided that I'd have to postpone playing with cabal :) HTTP 4000.2.12 is in [haskell-core]. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: magnus@therning.org jabber: magnus@therning.org twitter: magthe http://therning.org/magnus I invented the term Object-Oriented, and I can tell you I did not have C++ in mind. -- Alan Kay
participants (2)
-
Magnus Therning
-
Marcelo Garlet Millani