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

Henning Thielemann lemming at henning-thielemann.de
Tue Dec 7 15:42:34 EST 2010


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.

> Preprocessing library llvm-0.9.0.1...
> In file included from /usr/lib64/ghc-7.0.1/template-hsc.h:4:0,
>                 from dist/build/LLVM/FFI/Analysis_hsc_make.c:1:
> /usr/lib64/ghc-7.0.1/include/HsFFI.h:29:0: warning:
> "__STDC_LIMIT_MACROS" redefined
> <command-line>:0:0: note: this is the location of the previous
> definition

I have seen these warnings too, but don't know details about them.

> [39 of 40] Compiling LLVM.Util.Arithmetic ( LLVM/Util/Arithmetic.hs,
> dist/build/LLVM/Util/Arithmetic.o )
>
> LLVM/Util/Arithmetic.hs:17:1:
>    Warning: The import of `Data.TypeLevel' is redundant
>               except perhaps to import instances from `Data.TypeLevel'
>             To import instances alone, use: import Data.TypeLevel[40 of
> 40] Compiling LLVM.Util.File   ( LLVM/Util/File.hs,
> dist/build/LLVM/Util/File.o )
> ()
> Registering llvm-0.9.0.1...
> Running Haddock for llvm-0.9.0.1...
> Preprocessing library llvm-0.9.0.1...
> Running hscolour for llvm-0.9.0.1...

Thus in the end it was built, wasn't it?



More information about the Haskell-llvm mailing list