@@ -53,15 +53,14 @@ import Development.IDE.GHC.Compat (GenLocated (L), GhcRn,
53
53
RuleDecls (HsRules ),
54
54
SrcSpan (.. ),
55
55
TyClDecl (SynDecl ),
56
- TyClGroup (.. ),
57
- TypecheckedModule (.. ), fun_id ,
56
+ TyClGroup (.. ), fun_id ,
58
57
mi_fixities , moduleNameString ,
59
58
parseModule , rds_rules ,
60
59
srcSpanFile )
61
60
import GHC.Generics (Generic )
62
61
import GhcPlugins (Outputable ,
63
62
SourceText (NoSourceText ),
64
- isQual , isQual_maybe ,
63
+ hm_iface , isQual , isQual_maybe ,
65
64
nameModule_maybe , nameRdrName ,
66
65
occNameFS , occNameString ,
67
66
rdrNameOcc , unpackFS )
@@ -213,7 +212,7 @@ getBinds nfp = runMaybeT $ do
213
212
-- we use the typechecked source instead of the parsed source
214
213
-- to be able to extract module names from the Ids,
215
214
-- so that we can include adding the required imports in the retrie command
216
- let TypecheckedModule {tm_renamed_source = Just rn} = tmrModule tm
215
+ let rn = tmrRenamed tm
217
216
( HsGroup
218
217
{ hs_valds =
219
218
XValBindsLR
@@ -454,9 +453,9 @@ callRetrie state session rewrites origin restrictToOriginatingFile = do
454
453
let fs = occNameFS n
455
454
]
456
455
fixFixities f pm = do
457
- HiFileResult {hirModIface } <-
456
+ HiFileResult {hirHomeMod } <-
458
457
useOrFail " GetModIface" NoTypeCheck GetModIface f
459
- let fixities = fixityEnvFromModIface hirModIface
458
+ let fixities = fixityEnvFromModIface $ hm_iface hirHomeMod
460
459
res <- transformA pm (fix fixities)
461
460
return (fixities, res)
462
461
fixAnns ParsedModule {.. } =
0 commit comments