From de366303772ca8da38ab3bf03afffc925ffdf1ba Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 20 Apr 2004 13:08:04 +0000 Subject: [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. --- src/HsParser.ly | 4 ++-- 1 file 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) -> -- cgit v1.2.3