diff options
author | Yuchen Pei <hi@ypei.me> | 2022-07-21 12:27:19 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-07-21 12:27:19 +1000 |
commit | 32ac0f03b4259fc8eebba9bb3a2a46d23122a43b (patch) | |
tree | a371fb9c5a3f78e6f53c66d70e1255fdc71bba4d /haddock-api/src/Haddock/Interface/AttachInstances.hs | |
parent | cd17128898089450bb21790fd1864dc08fd4ddbc (diff) | |
parent | 2368e9329e6600b46000abd24ec00b7e27bcae75 (diff) |
Merge remote-tracking branch 'upstream/ghc-9.4' into ghc-9.4
Diffstat (limited to 'haddock-api/src/Haddock/Interface/AttachInstances.hs')
-rw-r--r-- | haddock-api/src/Haddock/Interface/AttachInstances.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/haddock-api/src/Haddock/Interface/AttachInstances.hs b/haddock-api/src/Haddock/Interface/AttachInstances.hs index cc9569af..4527360f 100644 --- a/haddock-api/src/Haddock/Interface/AttachInstances.hs +++ b/haddock-api/src/Haddock/Interface/AttachInstances.hs @@ -135,12 +135,12 @@ attachToExportItem index expInfo getInstDoc getFixity export = , expItemSubDocs = subDocs } = e { expItemFixities = nubByName fst $ expItemFixities e ++ - [ (n',f) | n <- getMainDeclBinder d + [ (n',f) | n <- getMainDeclBinder emptyOccEnv d , n' <- n : (map fst subDocs ++ patsyn_names) , f <- maybeToList (getFixity n') ] } where - patsyn_names = concatMap (getMainDeclBinder . fst) patsyns + patsyn_names = concatMap (getMainDeclBinder emptyOccEnv . fst) patsyns attachFixities e = e -- spanName: attach the location to the name that is the same file as the instance location |