aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Interface/Rename.hs
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2012-02-06 09:14:41 +0000
committerSimon Peyton Jones <simonpj@microsoft.com>2012-02-06 09:14:41 +0000
commit826c95646493284ab3c7c07ba159e959c760983c (patch)
tree1d2cacd5b55dc993137433da9c4c7e9d4e5603ec /src/Haddock/Interface/Rename.hs
parent57491ab4ac6263d9d9a11e972e7a95c840c299de (diff)
Track changes in HsDecls
Diffstat (limited to 'src/Haddock/Interface/Rename.hs')
-rw-r--r--src/Haddock/Interface/Rename.hs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/Haddock/Interface/Rename.hs b/src/Haddock/Interface/Rename.hs
index 691dafbc..9595e4cc 100644
--- a/src/Haddock/Interface/Rename.hs
+++ b/src/Haddock/Interface/Rename.hs
@@ -408,11 +408,14 @@ renameForD (ForeignExport lname ltype co x) = do
renameInstD :: InstDecl Name -> RnM (InstDecl DocName)
-renameInstD (InstDecl ltype _ _ lATs) = do
+renameInstD (ClsInstDecl ltype _ _ lATs) = do
ltype' <- renameLType ltype
lATs' <- mapM renameLTyClD lATs
- return (InstDecl ltype' emptyBag [] lATs')
+ return (ClsInstDecl ltype' emptyBag [] lATs')
+renameInstD (FamInstDecl d) = do
+ d' <- renameTyClD d
+ return (FamInstDecl d')
renameExportItem :: ExportItem Name -> RnM (ExportItem DocName)
renameExportItem item = case item of