aboutsummaryrefslogtreecommitdiff
path: root/haddock-api/src/Haddock/Interface/AttachInstances.hs
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-01-26 13:40:55 -0500
committerBen Gamari <ben@smart-cactus.org>2018-01-26 13:40:55 -0500
commitdd80ae1773ea6aae48c3c5a899d510699783d6ee (patch)
tree3e584806f3107f849ba2dcce0e6a87d4dbfa6837 /haddock-api/src/Haddock/Interface/AttachInstances.hs
parent3291502a4a15f30eaafdb22da4292a17e08aa7bd (diff)
parentb6a719bb3dcc51da8c162e213a4fdc43a35cb992 (diff)
Merge remote-tracking branch 'harpocrates/fix/missing-orphan-instances' into ghc-head
Diffstat (limited to 'haddock-api/src/Haddock/Interface/AttachInstances.hs')
-rw-r--r--haddock-api/src/Haddock/Interface/AttachInstances.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/haddock-api/src/Haddock/Interface/AttachInstances.hs b/haddock-api/src/Haddock/Interface/AttachInstances.hs
index 2231ce7e..4fd9d264 100644
--- a/haddock-api/src/Haddock/Interface/AttachInstances.hs
+++ b/haddock-api/src/Haddock/Interface/AttachInstances.hs
@@ -54,7 +54,7 @@ type ExportInfo = (ExportedNames, Modules)
-- Also attaches fixities
attachInstances :: ExportInfo -> [Interface] -> InstIfaceMap -> Ghc [Interface]
attachInstances expInfo ifaces instIfaceMap = do
- (_msgs, mb_index) <- getNameToInstancesIndex
+ (_msgs, mb_index) <- getNameToInstancesIndex (map ifaceMod ifaces)
mapM (attach $ fromMaybe emptyNameEnv mb_index) ifaces
where
-- TODO: take an IfaceMap as input