aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonmar <unknown>2002-04-29 15:28:12 +0000
committersimonmar <unknown>2002-04-29 15:28:12 +0000
commitb7211e0436828a7e9ffe00a11850a4f25f7e9b26 (patch)
tree426354b2a1eb0113f01775c859eb9dcc275eecd8
parent2ae37179f6c4eb1a09dc644322b51b868e9fb2a9 (diff)
[haddock @ 2002-04-29 15:28:12 by simonmar]
bugfix for declBinders on a NewTypeDecl
-rw-r--r--src/HaddockUtil.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HaddockUtil.hs b/src/HaddockUtil.hs
index ae246553..be4b2d88 100644
--- a/src/HaddockUtil.hs
+++ b/src/HaddockUtil.hs
@@ -52,7 +52,7 @@ declBinders d =
case d of
HsTypeDecl _ n _ _ -> [n]
HsDataDecl _ _ n _ cons _ -> n : concat (map conDeclBinders cons)
- HsNewTypeDecl _ _ n _ _ _ -> [n]
+ HsNewTypeDecl _ _ n _ con _ -> n : conDeclBinders con
HsClassDecl _ qt _ decls -> exQtNm qt : collectNames decls
HsTypeSig _ ns _ -> ns
HsForeignImport _ _ _ _ n _ -> [n]