Use of cpp

Isaac Jones ijones at syntaxpolice.org
Tue Jul 13 15:41:12 EDT 2004


Ross Paterson <ross at soi.city.ac.uk> writes:

> On Tue, Jul 13, 2004 at 12:02:13PM +0100, Adrian Hey wrote:
>> I've just modified some Haskell code from the AVL library to explicitly
>> use ghc unboxed Ints in some routines.
>> 
>> Unfortunately, I've broken portability by doing this and was considering some
>> cpp magic to restore portability. But IIRC, the use of cpp is discouraged for
>> Haskell library infrastructure.
>> 
>> Is that so? If so, what should I use instead?
>
> The initial version of the infrastructure may not support cpp, but it
> should appear later.

FWIW, I think it'll be one of the first things we do after the 0.1
release.  Should be very easy with hscpp.


peace,

  isaac


More information about the Libraries mailing list