With the new version of GHC (7.8.3) I am running into problems with cpp.
The header of one of the files of my uu-parsinglib library reads as follows:
{-# LANGUAGE NoMonomorphismRestriction,
RankNTypes,
FlexibleContexts,
CPP #-}
#define DEMO(p,i) demo "p" i p
#define DEMOG(p,i) demo "p" i (mkP (p))
module Text.ParserCombinators.UU.Demo.MergeAndPermute where
...
However when I try to compile this file I get error messages like:
Text/ParserCombinators/UU/Demo/Demo.hs:88:17:
Not in scope: data constructor ‘DEMOG’