Perhaps it makes sense to scan hackage to find all the different CPP idioms that are actually used in Haskell code, if it is a small/well-defined set it may be worth writing a simple custom preprocessor.

Alan

On Wed, May 6, 2015 at 3:03 PM, Mikhail Glushenkov <the.dead.shall.rise@gmail.com> wrote:
On 6 May 2015 at 14:25, Austin Seipp <austin@well-typed.com> wrote:
>   2) The lexing rules for C and Haskell simply are not the same in
> general.

One area where this is irritating is that it makes it impossible to
use Haskell multiline strings together with CPP.
_______________________________________________
ghc-devs mailing list
ghc-devs@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs