diff options
author | David Waern <unknown> | 2007-08-30 16:30:37 +0000 |
---|---|---|
committer | David Waern <unknown> | 2007-08-30 16:30:37 +0000 |
commit | e185f5ae9c9470b861916aa96933fa72cd703a4e (patch) | |
tree | 0ccb61c3b3d48e5050c605f0480030ea29b9c7d0 /src/Haddock/Interface/AttachInstances.hs | |
parent | 05e581c7f2ecee466d800b2d01dbb34598de2e20 (diff) |
Rename HaddockModule to Interface
Diffstat (limited to 'src/Haddock/Interface/AttachInstances.hs')
-rw-r--r-- | src/Haddock/Interface/AttachInstances.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Haddock/Interface/AttachInstances.hs b/src/Haddock/Interface/AttachInstances.hs index 51c531e1..8e81d8a6 100644 --- a/src/Haddock/Interface/AttachInstances.hs +++ b/src/Haddock/Interface/AttachInstances.hs @@ -32,9 +32,9 @@ attachInstances :: [Interface] -> [Interface] attachInstances modules = map attach modules where instMap = fmap (map toHsInstHead . sortImage instHead) $ collectInstances modules - attach mod = mod { hmod_export_items = newItems } + attach mod = mod { ifaceExportItems = newItems } where - newItems = map attachExport (hmod_export_items mod) + newItems = map attachExport (ifaceExportItems mod) attachExport (ExportDecl n decl doc _) = ExportDecl n decl doc (case Map.lookup n instMap of @@ -56,7 +56,7 @@ collectInstances modules = Map.fromListWith (flip (++)) tyInstPairs `Map.union` Map.fromListWith (flip (++)) classInstPairs where - allInstances = concat (map hmod_instances modules) + allInstances = concat (map ifaceInstances modules) classInstPairs = [ (is_cls inst, [instanceHead inst]) | inst <- allInstances ] tyInstPairs = [ (tycon, [instanceHead inst]) | inst <- allInstances, |