diff options
author | simonmar <unknown> | 2004-04-20 13:08:04 +0000 |
---|---|---|
committer | simonmar <unknown> | 2004-04-20 13:08:04 +0000 |
commit | de366303772ca8da38ab3bf03afffc925ffdf1ba (patch) | |
tree | cc11f019be1bab5b21f195d7679f4cc8136ccb84 /src | |
parent | f6a99c2dbc025f10db75ddb7936f3c2e0ffc5f48 (diff) |
[haddock @ 2004-04-20 13:08:04 by simonmar]
Allow a 'type' declaration to include documentation comments. These
will be ignored by Haddock, but at least one user (Johannes Waldmann)
finds this feature useful, and it's easy to add.
Diffstat (limited to 'src')
-rw-r--r-- | src/HsParser.ly | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HsParser.ly b/src/HsParser.ly index 4adbcef5..5ac3e4bc 100644 --- a/src/HsParser.ly +++ b/src/HsParser.ly @@ -1,5 +1,5 @@ ----------------------------------------------------------------------------- -$Id: HsParser.ly,v 1.19 2003/10/20 17:19:23 sof Exp $ +$Id: HsParser.ly,v 1.20 2004/04/20 13:08:04 simonmar Exp $ (c) Simon Marlow, Sven Panne 1997-2002 @@ -305,7 +305,7 @@ Top-Level Declarations > | {- empty -} { [] } > topdecl :: { HsDecl } -> : 'type' simpletype srcloc '=' ctype +> : 'type' simpletype srcloc '=' ctypedoc > { HsTypeDecl $3 (fst $2) (snd $2) $5 Nothing } > | 'data' ctype srcloc constrs deriving > {% checkDataHeader $2 `thenP` \(cs,c,t) -> |