[cabal] Extract simple static information from PackageDescription

Jakob Schöttl jschoett at gmail.com
Sat Nov 7 18:52:14 UTC 2015


Ah, that's perfect in my case! Thank you!

I managed to merge the hs-source-dirs fields "manually":
https://gist.github.com/schoettl/b321baa5002ca48a46c5

But flattenPackageDescription seems to do exactly that.

Thanks, Jakob

On 07.11.2015 00:16, Henning Thielemann wrote:
>
> On Fri, 6 Nov 2015, Jakob Schöttl wrote:
>
>> Thank you, Henning. I see, I need to handle this conditionals even if 
>> I don't have such conditionals and flags in my cabal file.
>>
>> How can I resolve the conditionals?
>
> I think, this one should help:
> https://www.haskell.org/cabal/release/cabal-latest/doc/API/Cabal/Distribution-PackageDescription-Configuration.html#v:flattenPackageDescription




More information about the Libraries mailing list