it seems that symbols like \ and ' are gone form the generated documentation

David Waern david.waern at gmail.com
Thu Dec 9 11:36:12 CET 2010


2010/12/9 S. Doaitse Swierstra <doaitse at swierstra.net>:
>
> Code in the source of a package like:
>
> @
> *Main> throw ThisException `catch` \e -> putStrLn (\"Caught \" ++ show (e ::
> MyException))
> Caught ThisException
> @
>
> (from the
> module http://haskell.org/ghc/docs/7.0-latest/html/libraries/base-4.3.0.0/src/GHC-Exception.html#Exception)
> gets formatted like:
>
> *Main> throw ThisException catch e -> putStrLn ("Caught " ++ show (e ::
> MyException))
> Caught ThisException
>
> where the underlying HTML is:
>
> </p><pre>
> *Main&gt; throw ThisException <code>catch</code> e -&gt; putStrLn
> (&quot;Caught &quot; ++ show (e :: MyException))
> Caught ThisException
> </pre><p>
>
> This is a Haddock problem I assume?
>  Doaitse

Most probably yes. Here's the code for those who want to take a look:

  http://code.haskell.org/haddock/src/Haddock/Lex.x

I'll take a look at it later.

David



More information about the Libraries mailing list