aboutsummaryrefslogtreecommitdiff
path: root/src/HsSyn.lhs
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-08-02 09:25:23 +0000
committersimonmar <unknown>2002-08-02 09:25:23 +0000
commit8106b086a5ce09914fdc9f331a7bc91a5b2e0c1a (patch)
treec8a9dcbd17b4f9cf23114debb65b2fbbbafdb779 /src/HsSyn.lhs
parentb34d18fa77592244882566046f0f5946aa148409 (diff)
[haddock @ 2002-08-02 09:25:20 by simonmar]
Remove <P>..</P> from around list items, to reduce excess whitespace between the items of bulleted and ordered lists. (Suggestion from Daan Leijen).
Diffstat (limited to 'src/HsSyn.lhs')
-rw-r--r--src/HsSyn.lhs20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/HsSyn.lhs b/src/HsSyn.lhs
index cde2ce63..d7d18f20 100644
--- a/src/HsSyn.lhs
+++ b/src/HsSyn.lhs
@@ -1,5 +1,5 @@
% -----------------------------------------------------------------------------
-% $Id: HsSyn.lhs,v 1.14 2002/07/25 14:37:29 simonmar Exp $
+% $Id: HsSyn.lhs,v 1.15 2002/08/02 09:25:23 simonmar Exp $
%
% (c) The GHC Team, 1997-2002
%
@@ -31,7 +31,7 @@ module HsSyn (
unit_tycon, fun_tycon, list_tycon, tuple_tycon,
GenDoc(..), Doc, DocMarkup(..),
- markup, mapIdent,
+ markup, mapIdent, idMarkup,
docAppend, docParagraph,
) where
@@ -432,16 +432,14 @@ markup m (DocCodeBlock d) = markupCodeBlock m (markup m d)
markup m (DocURL url) = markupURL m url
markup m (DocAName ref) = markupAName m ref
--- | Since marking up is just a matter of mapping 'Doc' into some
--- other type, we can \'rename\' documentation by marking up 'Doc' into
--- the same thing, modifying only the identifiers embedded in it.
-mapIdent :: (a -> GenDoc b) -> DocMarkup a (GenDoc b)
-mapIdent f = Markup {
+-- | The identity markup
+idMarkup :: DocMarkup a (GenDoc a)
+idMarkup = Markup {
markupEmpty = DocEmpty,
markupString = DocString,
markupParagraph = DocParagraph,
markupAppend = DocAppend,
- markupIdentifier = f,
+ markupIdentifier = DocIdentifier,
markupModule = DocModule,
markupEmphasis = DocEmphasis,
markupMonospaced = DocMonospaced,
@@ -452,6 +450,12 @@ mapIdent f = Markup {
markupAName = DocAName
}
+-- | Since marking up is just a matter of mapping 'Doc' into some
+-- other type, we can \'rename\' documentation by marking up 'Doc' into
+-- the same thing, modifying only the identifiers embedded in it.
+mapIdent :: (a -> GenDoc b) -> DocMarkup a (GenDoc b)
+mapIdent f = idMarkup{ markupIdentifier = f }
+
-- -----------------------------------------------------------------------------
-- ** Smart constructors