[haskell-llvm] LLVM and Cabal 1.10.0.0

Henning Thielemann lemming at henning-thielemann.de
Sun Dec 12 08:55:01 EST 2010


On Sun, 12 Dec 2010, Maciej Piechotka wrote:

> On Sun, 2010-12-12 at 12:22 +0100, Henning Thielemann wrote:
>> On Sun, 12 Dec 2010, Maciej Piechotka wrote:
>>
>>> About recent problems with building LLVM with GHC-7 + Cabal 1.10.0.0:
>>>
>>> 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.
>>
>
> Main implication is that it does not type check with Cabal 1.10.0.0 I
> imagine:

I see. It is not just, that GlobalPackageDB must be added for Cabal-1.10, 
but something else has changed, too. However I cannot figure out a 
difference in flagToMaybe, flagToList, and regPackageDB. Do you know, what 
has changed?

Anyway, I have pushed your patch to llvm repository.



More information about the Haskell-llvm mailing list