haskell / cabal

Official upstream development repository for Cabal and cabal-install
https://haskell.org/cabal
Other
1.62k stars 697 forks source link

Incorrect processing of .lhs files #1735

Closed 23Skidoo closed 6 years ago

23Skidoo commented 10 years ago

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:

blabla, blibli
$a+b$
\begin{code}
main=putStrLn "Hello"
\end{code}

I first thought it was a haddock bug, but the haddock maintainers disagree:http://trac.haskell.org/haddock/ticket/293

gbaz commented 6 years ago

Can't repro.