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.
<br><br>Cheers, - Conal<br><br><div><span class="gmail_quote">On 1/9/07, <b class="gmail_sendername">Malcolm Wallace</b> &lt;<a href="mailto:Malcolm.Wallace@cs.york.ac.uk">Malcolm.Wallace@cs.york.ac.uk</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">&quot;Conal Elliott&quot; &lt;<a href="mailto:conal@conal.net">conal@conal.net</a>&gt; wrote:
<br><br>&gt; Fiddling with flags, I see that -optP-P is the culprit.&nbsp;&nbsp;Removing it:<br>&gt;<br>&gt; bash-3.2$ ghc -E -cpp -o z src/Graphics/UI/TV/Input.hs<br>&gt; -Dmingw32_BUILD_OS -Dmingw32_HOST_OS -Di386_BUILD_ARCH<br>&gt; -Di386_HOST_ARCH -D__GLASGOW_HASKELL__=606 -D__HADDOCK__; head -3 z
<br>&gt; # 1 &quot;src/Graphics/UI/TV/Input.hs&quot;<br>&gt; # 1 &quot;&lt;built-in&gt;&quot;<br>&gt; # 1 &quot;&lt;command line&gt;&quot;<br><br>This may not answer your question, but assuming you want to get rid of<br>the last two lines, keeping only the first, have you tried using the
<br>options -pgmPcpphs -optP-cpp (with a recent version of cpphs)?<br><br>Regards,<br>&nbsp;&nbsp;&nbsp;&nbsp;Malcolm<br>_______________________________________________<br>Libraries mailing list<br><a href="mailto:Libraries@haskell.org">Libraries@haskell.org
</a><br><a href="http://www.haskell.org/mailman/listinfo/libraries">http://www.haskell.org/mailman/listinfo/libraries</a><br></blockquote></div><br>