aboutsummaryrefslogtreecommitdiff
path: root/src/HaddockRename.hs
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-05-08 14:48:41 +0000
committersimonmar <unknown>2002-05-08 14:48:41 +0000
commitdb23f65e1d2a82ac7d86c055cac66b35a3f68940 (patch)
tree9df9e7e323fbe4d8b8fa590eaa920de3c46057e8 /src/HaddockRename.hs
parentcda064470606a73d9ed97644684a447791b627f5 (diff)
[haddock @ 2002-05-08 14:48:39 by simonmar]
Add support for existential quantifiers on constructors.
Diffstat (limited to 'src/HaddockRename.hs')
-rw-r--r--src/HaddockRename.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/HaddockRename.hs b/src/HaddockRename.hs
index f897c600..59d71bd5 100644
--- a/src/HaddockRename.hs
+++ b/src/HaddockRename.hs
@@ -104,12 +104,12 @@ renameClassHead (HsForAllType tvs ctx ty) = do
renameClassHead ty = do
return ty
-renameConDecl (HsConDecl loc nm tys maybe_doc) = do
+renameConDecl (HsConDecl loc nm tvs ctxt tys maybe_doc) = do
tys <- mapM renameBangTy tys
- return (HsConDecl loc nm tys maybe_doc)
-renameConDecl (HsRecDecl loc nm fields maybe_doc) = do
+ return (HsConDecl loc nm tvs ctxt tys maybe_doc)
+renameConDecl (HsRecDecl loc nm tvs ctxt fields maybe_doc) = do
fields <- mapM renameField fields
- return (HsRecDecl loc nm fields maybe_doc)
+ return (HsRecDecl loc nm tvs ctxt fields maybe_doc)
renameField (HsFieldDecl ns ty doc) = do
ty <- renameBangTy ty