I am having trouble commenting out lines of code in an lhs-style haskell program, so both haskell and Latex ignore the line.
When I use --
then my lh2tex will try to render the haskell code as a comment. But this often fails, because the code contains dollars and other stuff which is confusing for Latex.
When I use --%
, then Latex is happy as it just ignores the comment, but haskell does not like --%
. Only when I put a space after --
haskell is okay with it, but then Latex is complaining again.