How to write special characters like new line, and format output of haddock

I would like to format my haddock documentation as I do with javadoc, something like inserting html or any other markup that let me get a cleaner output without uncluding any javascript or CSS... Specially, I would like to know how to insert a line break in the documentation.

thanks!


Haddock is designed to work with multiple output formats, including LaTeX, so it uses its own markup format instead of something like HTML.

I don't think you can insert just a line break, but you can start a new paragraph by leaving a blank line, eg

-- | First paragraph.
--
-- Second paragraph.
链接地址: http://www.djcxy.com/p/56624.html

上一篇: 使用LESS或SCSS进行实时预览?

下一篇: 如何编写像new line这样的特殊字符,并输出haddock的格式