Hi all!<br><br>In order to help encourage good documentation, I just pushed a patch to xmonad-contrib to include haddock generation in the automatic darcs test. In other words, the haddock documentation must build without errors in order to record a patch.&nbsp; To ease the pain a bit, here&#39;s a quick summary of Things You Should Know about haddock documentation for contributed extension modules:
<br><br>* all exported functions in contributed modules should have a haddock-style comment saying what they do.&nbsp; Haddock-style comments look like this:<br>-- | This is a haddock-style comment<br>Note the vertical pipe character (and the spaces around it!).
<br><br>* You can quote literal code blocks by using &quot;birdtracks&quot;, like this:<br><br>&gt; foo x = x + h<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; where h = 3<br><br>Be sure to leave blank lines both before and after any such code blocks!&nbsp; It won&#39;t parse correctly without the blank lines.
<br><br>* Inline literal code fragments can be surrounded by @at symbols@.<br><br>* To include a hyperlink to another function in the module, surround the function name in &#39;single quotes&#39;.&nbsp; To link to another module, surround the module name in &quot;double quotes&quot;.
<br><br>* To include literal single or double quotes, frontslashes, backslashes, at symbols, etc., escape them with backslashes, \&quot;like this\&quot;.&nbsp; Not escaping things like this is another common reason your documentation might fail to compile.
<br><br>For more detail, you should have a look at the <a href="http://www.haskell.org/haddock/haddock-html-0.8/index.html">Haddock user guide</a>.&nbsp; And of course, the best advice overall is to just look at the style of other extensions, and emulate it.
<br><br>Happy hacking!<br>-Brent<br>