Pragma not recognised when wrapped in #ifdef

Colin Adams colinpauladams at
Wed Feb 11 04:06:09 EST 2009

Is there still a need for CPP now that Template Haskell exists?

2009/2/11 Simon Peyton-Jones <simonpj at>:
> | Perhaps CPP shouldn't be a pragma, just a command-line flag? It seems
> | to be the only one that affects/involves preprocessor(s). AFAICT, the
> | others all affect the haskell compiler stage.
> Yes, it does seem anomalous.  I suppose the motivation is that some modules might need CPP and some not, and it's convenient for the module itself to announce that fact.
> Simon
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at

More information about the Glasgow-haskell-users mailing list