
On Thu, 2010-12-09 at 00:16 +0100, S. Doaitse Swierstra wrote:
Code in the source of a package like: @ *Main> throw ThisException `catch` \e -> putStrLn (\"Caught \" ++ show (e :: MyException)) Caught ThisException @ gets formatted like: *Main> throw ThisException catch e -> putStrLn ("Caught " ++ show (e :: MyException)) Caught ThisException
From http://www.haskell.org/haddock/doc/html/ch03s08.html#id565903
3.8.2. Special characters The following characters have special meanings in documentation comments: /, ', `, ", @, <. To insert a literal occurrence of one of these special characters, precede it with a backslash (\). Maybe this is also necessary inside code blocks in documentation comments. I think \ should be added to the list of special characters as it also has special meaning. Sebastian