[haskell-llvm] LLVM and Cabal

Henning Thielemann lemming at henning-thielemann.de
Sun Dec 12 06:22:17 EST 2010

On Sun, 12 Dec 2010, Maciej Piechotka wrote:

> About recent problems with building LLVM with GHC-7 + Cabal
> After changin the offending lines to:
>    packageDb = case flagToList (regPackageDB regFlags) of
>                    [] -> [GlobalPackageDB,
>                           registrationPackageDB (withPackageDB lbi)]
>                    xs -> xs
> everything seems to be OK (in one settings).

This would work with GHC-6.10.4, too. However using 'flagToMaybe' is 
closer to what is currently in Setup.hs:

     packageDb = case flagToMaybe (regPackageDB regFlags) of
                     Just db -> db
                     Nothing -> [GlobalPackageDB,
                                 registrationPackageDB (withPackageDB lbi)]

I don't know anything about the implications.

More information about the Haskell-llvm mailing list