
Hi all, I downloaded cabal-install and the cabal-1.4 branch from darcs. The following error occurs when building:
runhaskell Setup.hs build
Building cabal-install-0.4.9... [19 of 27] Compiling Hackage.SrcDist ( Hackage/SrcDist.hs, dist/build/cabal/cabal-tmp/Hackage/SrcDist.o ) Hackage/SrcDist.hs:58:59: Couldn't match expected type `Char' against inferred type `Distribution.Simple.PreProcess.PPSuffixHandler' Expected type: FilePath Inferred type: [Distribution.Simple.PreProcess.PPSuffixHandler] In the fifth argument of `prepareSnapshotTree', namely `knownSuffixHandlers' In the second argument of `(>>=)', namely `prepareSnapshotTree verbosity pkg mb_lbi tmpDir knownSuffixHandlers' According to ghc-pkg compiling and installing the cabal-1.4 branch added cabal-1.3.12. Is this the problem? -Deech _________________________________________________________________ It’s easy to add contacts from Facebook and other social sites through Windows Live™ Messenger. Learn how. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow

Could you try the cabal-1.4 package just put up on hackage.haskell.org? aditya_siram:
Hi all, I downloaded cabal-install and the cabal-1.4 branch from darcs. The following error occurs when building:
runhaskell Setup.hs build
Building cabal-install-0.4.9... [19 of 27] Compiling Hackage.SrcDist ( Hackage/SrcDist.hs, dist/build/cabal/cabal-tmp/Hackage/SrcDist.o )
Hackage/SrcDist.hs:58:59: Couldn't match expected type `Char' against inferred type `Distribution.Simple.PreProcess.PPSuffixHandler' Expected type: FilePath Inferred type: [Distribution.Simple.PreProcess.PPSuffixHandler] In the fifth argument of `prepareSnapshotTree', namely `knownSuffixHandlers' In the second argument of `(>>=)', namely `prepareSnapshotTree verbosity pkg mb_lbi tmpDir knownSuffixHandlers'
According to ghc-pkg compiling and installing the cabal-1.4 branch added cabal-1.3.12. Is this the problem?
-Deech _________________________________________________________________ It’s easy to add contacts from Facebook and other social sites through Windows Live™ Messenger. Learn how. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow____________... Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Thu, 2008-06-12 at 16:07 -0500, Aditya Siram wrote:
Hi all, I downloaded cabal-install and the cabal-1.4 branch from darcs. The following error occurs when building:
runhaskell Setup.hs build
Building cabal-install-0.4.9... [19 of 27] Compiling Hackage.SrcDist ( Hackage/SrcDist.hs, dist/build/cabal/cabal-tmp/Hackage/SrcDist.o )
Hackage/SrcDist.hs:58:59: Couldn't match expected type `Char' against inferred type `Distribution.Simple.PreProcess.PPSuffixHandler' Expected type: FilePath Inferred type: [Distribution.Simple.PreProcess.PPSuffixHandler] In the fifth argument of `prepareSnapshotTree', namely `knownSuffixHandlers' In the second argument of `(>>=)', namely `prepareSnapshotTree verbosity pkg mb_lbi tmpDir knownSuffixHandlers'
Yeah, sorry that was my fault. You caught it in the few hours when the two darcs versions were not compatible. They work now, or as Don says, get the actual releases from hackage. Duncan

Thanks so much for your help. Actually Don got it fixed within twenty minutes but I mistakenly didn't cc the group. But it works perfectly now. -Deech ----------------------------------------
Subject: Re: [Haskell-cafe] Cabal-Install Fails To Compile From: duncan.coutts@worc.ox.ac.uk To: aditya_siram@hotmail.com CC: haskell-cafe@haskell.org Date: Fri, 13 Jun 2008 03:58:59 +0100
On Thu, 2008-06-12 at 16:07 -0500, Aditya Siram wrote:
Hi all, I downloaded cabal-install and the cabal-1.4 branch from darcs. The following error occurs when building:
runhaskell Setup.hs build
Building cabal-install-0.4.9... [19 of 27] Compiling Hackage.SrcDist ( Hackage/SrcDist.hs, dist/build/cabal/cabal-tmp/Hackage/SrcDist.o )
Hackage/SrcDist.hs:58:59: Couldn't match expected type `Char' against inferred type `Distribution.Simple.PreProcess.PPSuffixHandler' Expected type: FilePath Inferred type: [Distribution.Simple.PreProcess.PPSuffixHandler] In the fifth argument of `prepareSnapshotTree', namely `knownSuffixHandlers' In the second argument of `(>>=)', namely `prepareSnapshotTree verbosity pkg mb_lbi tmpDir knownSuffixHandlers'
Yeah, sorry that was my fault. You caught it in the few hours when the two darcs versions were not compatible. They work now, or as Don says, get the actual releases from hackage.
Duncan
_________________________________________________________________ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback
participants (3)
-
Aditya Siram
-
Don Stewart
-
Duncan Coutts