Initially reported by Pierre-Étienne Meunier on cabal-dev@:
Hi,
There is a bug in cabal haddock, when lines in an lhs file start with a $, which is quite common when writing a paper with large TeX fragments in the programs.
For instance, cabal haddock fails on the following lhs file:
Initially reported by Pierre-Étienne Meunier on cabal-dev@: