Haskell Platform proposal: Add the vector package

Roman Leshchinskiy rl at cse.unsw.edu.au
Tue Jun 19 01:06:47 CEST 2012

On 18/06/2012, at 23:20, Henning Thielemann wrote:

> On Mon, 18 Jun 2012, Roman Leshchinskiy wrote:
>> VECTOR_BOUNDS_CHECKS is defined in vector.cabal as follows:
>> if flag(BoundsChecks)
>>   cpp-options: -DVECTOR_BOUNDS_CHECKS
>> Doesn't Cabal provide access to the flags that a package has been compiled with?
> Do you mean this way:
>   http://hackage.haskell.org/trac/hackage/ticket/836
> ?

Indeed. I'm surprised Cabal doesn't provide this. But now I'm confused. How do I export a CPP symbol that depends on a flag to other packages? Do I have to generate a header file during configuration for that?


More information about the Libraries mailing list