From d21b66c756cb0b69b7268685bae8991725e64c80 Mon Sep 17 00:00:00 2001 From: David Waern Date: Mon, 7 Jan 2008 16:48:40 +0000 Subject: Document OPTIONS_HADDOCK --- doc/haddock.xml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/doc/haddock.xml b/doc/haddock.xml index ba3cb3e0..661457e6 100644 --- a/doc/haddock.xml +++ b/doc/haddock.xml @@ -1285,26 +1285,20 @@ import B Certain attributes may be specified for each module which affects the way that Haddock generates documentation for that - module. Attributes are specified in a comma-separated list in a - -- # (or - {- # ... -}) comment at the + module. Attributes are specified in a comma-separated list in an + {-# OPTIONS_HADDOCK ... #-} pragma at the top of the module, either before or after the module description. For example: --- #hide, prune, ignore-exports +{-# OPTIONS_HADDOCK hide, prune, ignore-exports #-} -- |Module description module A where ... - The options and module description can be in either order, but - remember to separate them using a blank line if you are using the - -- style comments. Without the blank line in the - example above, the module description would be assumed to be part of - the options, and Haddock would complain about unrecognised - options. + The options and module description can be in either order. The following attributes are currently understood by Haddock: -- cgit v1.2.3