[haskell-llvm] [Haskell-cafe] Hackage have ghc 7.0 false

John Lato jwlato at gmail.com
Wed Dec 8 10:38:54 EST 2010


>
> From: Henning Thielemann <lemming at henning-thielemann.de>
>
> On Tue, 7 Dec 2010, Maciej Piechotka wrote:
>
> > To begin with there is type-checking error when compiling with cabal
> > 1.10 shipped with ghc:
> >
> >
> /var/tmp/paludis/dev-haskell-llvm-0.9.0.1/work/llvm-0.9.0.1/Setup.hs:102:70:
> >    Couldn't match expected type `[PackageDB]'
> >                with actual type `PackageDB'
> >    Expected type: PackageDBStack
> >      Actual type: PackageDB
> >    In the sixth argument of `registerPackage', namely `packageDb'
> >    In the expression:
> >      registerPackage
> >        verbosity installedPkgInfo pkg lbi inplace packageDb
>
>
> This looks like an incompatibility with respect to Cabal, not with respect
> to the 'llvm' modules and GHC-7.
>

It is.  I recently tried to install llvm with ghc-7 and had the same problem
with Setup.hs.  The first way I got it to work was by compiling Setup.hs
with ghc-6, and then build and register llvm with the standalone Setup
program.  After that it's been fine for my usage.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.haskell.org/pipermail/haskell-llvm/attachments/20101208/69c1fa90/attachment.htm 


More information about the Haskell-llvm mailing list