I don't know what -optP-P or these other flags are. Do you know where they're documented? In any case, the context here is that cabal is controlling the preprocessing. So whatever the solution is, I'd like it to come from or through cabal.
Cheers, - Conal
"Conal Elliott" <conal@conal.net> wrote:
> Fiddling with flags, I see that -optP-P is the culprit. Removing it:
>
> bash-3.2$ ghc -E -cpp -o z src/Graphics/UI/TV/Input.hs
> -Dmingw32_BUILD_OS -Dmingw32_HOST_OS -Di386_BUILD_ARCH
> -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=606 -D__HADDOCK__; head -3 z
> # 1 "src/Graphics/UI/TV/Input.hs"
> # 1 "<built-in>"
> # 1 "<command line>"
This may not answer your question, but assuming you want to get rid of
the last two lines, keeping only the first, have you tried using the
options -pgmPcpphs -optP-cpp (with a recent version of cpphs)?
Regards,
Malcolm
_______________________________________________
Libraries mailing list
Libraries@haskell.org
http://www.haskell.org/mailman/listinfo/libraries