aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Doc/Developing.hs
diff options
context:
space:
mode:
authorBrent Yorgey <byorgey@gmail.com>2007-12-19 22:53:00 +0100
committerBrent Yorgey <byorgey@gmail.com>2007-12-19 22:53:00 +0100
commit777af2fbe604c14abbef95c84e9e52a5207fd738 (patch)
tree29ac8b0e3667d6f0c165e45da316acd443902e27 /XMonad/Doc/Developing.hs
parent66d8dc79dd7915aa00fe5adf496a077a594e7b9b (diff)
downloadXMonadContrib-777af2fbe604c14abbef95c84e9e52a5207fd738.tar.gz
XMonadContrib-777af2fbe604c14abbef95c84e9e52a5207fd738.tar.xz
XMonadContrib-777af2fbe604c14abbef95c84e9e52a5207fd738.zip
Doc/Developing.hs: add some information about Haddock documentation.
darcs-hash:20071219215300-bd4d7-ddf6e83d3e73cbfb22cdf96f0080763a13288199.gz
Diffstat (limited to '')
-rw-r--r--XMonad/Doc/Developing.hs27
1 files changed, 26 insertions, 1 deletions
diff --git a/XMonad/Doc/Developing.hs b/XMonad/Doc/Developing.hs
index ced3175..9235a95 100644
--- a/XMonad/Doc/Developing.hs
+++ b/XMonad/Doc/Developing.hs
@@ -246,7 +246,7 @@ xmonad contributed extensions.
* Comment every top level function (particularly exported funtions), and
provide a type signature.
-* Use Haddock syntax in the comments.
+* Use Haddock syntax in the comments (see below).
* Follow the coding style of the other modules.
@@ -260,6 +260,31 @@ xmonad contributed extensions.
* Any pure function added to the core should have QuickCheck properties
precisely defining its behaviour.
+For examples of Haddock documentation syntax, have a look at other
+extensions. Important points are:
+
+* Every exported function (or even better, every function) should have
+ a Haddock comment explaining what it does.
+
+* Literal chunks of code can be written in comments using
+ \"birdtrack\" notation (a greater-than symbol at the beginning of
+ each line). Be sure to leave a blank line before and after each
+ birdtrack-quoted section.
+
+* Link to functions by surrounding the names in single quotes, modules
+ in double quotes.
+
+* Literal quote marks and slashes should be escaped with a backslash.
+
+To generate and view the Haddock documentation for your extension, run
+
+> runhaskell Setup haddock
+
+and then point your browser to @\/path\/to\/XMonadContrib\/dist\/doc\/html\/xmonad-contrib\/index.html@.
+
+For more information, see the Haddock documentation:
+<http://www.haskell.org/haddock/haddock-html-0.8/index.html>.
+
-}
{- $license