Mariano Suarez Alvarez writes:
> Using ghc-3.01, if one does
>  
>     mkdependHS t.lhs
> 
> where t.lhs is
> 
> ----------------------------
> \begin{code}
> module T where
> \end{code}
> 
> \begin{code}
> mediaTypeP :: Parser MediaType
> mediaTypeP = 
>       (litP "*/*" >> return AnyType) +++
>       (tokenP >>= \t -> msp >> charP '/' >>
>        maybeP tokenP >>= \st ->
>        many parameterP >>= \ps ->
>        return (AType t st ps))
> \end{code}
> ---------------------------------------
> 
> it complains, saying
> 
>    :8: unterminated comment
> 
> This doesn't happen if one changes the two asterisks in the program for,
> say '%' (!), or if one writes the "*/*" string as '*':'/':'*':[] ...
> 

Bad interaction with cpp's tokeniser, I guess. Add "/*" somewhere
before the occurrence of "*/" to fix this.

We've recently changed the default behaviour of mkdependHS; it now
won't run cpp over your source files unless you explicitly ask for
it. ghc-3.02 will have this included.

--Sigbjorn

Reply via email to