[Haskell-cafe] Haddock question

S. Doaitse Swierstra doaitse at swierstra.net
Wed Jul 21 10:07:48 EDT 2010


I am trying to document my parser library. In order to do so I should like to include some example output in my haddock documentation. I fail to see however how to get a block of output into the haddock part.

E.g.

-- | We can now run the parser @`pa`@ on input \"a\", which succeeds: 
-- @ Result: \"a\"
-- @

does not put the Result ... on a separate line, and if I have several lines of output they are concatenated.

 How to proceed,

 Doaitse




More information about the Haskell-Cafe mailing list