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

◇◆丶佛笑我妖孽 提交于 2019-12-08 17:35:57

问题


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!


回答1:


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, e.g.

-- | First paragraph.
--
-- Second paragraph.


来源:https://stackoverflow.com/questions/8422547/how-to-write-special-characters-like-new-line-and-format-output-of-haddock

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!