[Haskell-cafe] CPP and INLINE pragmas
Malcolm Wallace
Malcolm.Wallace at cs.york.ac.uk
Sun Jan 20 18:33:31 EST 2008
"Adam Langley" <agl at imperialviolet.org> writes:
> Has anyone a workaround for this, or a way to get the preprocessor to
> output a newline?
You can use cpphs with the --layout flag, to preserve newlines in macro
expansion.
http://haskell.org/cpphs
For instance, with ghc you need to add the following flags:
ghc -cpp -pgmPcpphs -optP--cpp -optP--layout
Regards,
Malcolm
More information about the Haskell-Cafe
mailing list