File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
plugins/tactics/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ import Language.Haskell.LSP.Types
61
61
import OccName
62
62
import SrcLoc (containsSpan )
63
63
import System.Timeout
64
+ import TcRnTypes (tcg_binds )
64
65
65
66
66
67
descriptor :: PluginId -> PluginDescriptor
@@ -260,8 +261,8 @@ judgementForHole state nfp range = do
260
261
261
262
resulting_range <- liftMaybe $ toCurrentRange amapping $ realSrcSpanToRange rss
262
263
(tcmod, _) <- MaybeT $ runIde state $ useWithStale TypeCheck nfp
263
- let tcg = fst $ tm_internals_ $ tmrModule tcmod
264
- tcs = tm_typechecked_source $ tmrModule tcmod
264
+ let tcg = tmrTypechecked tcmod
265
+ tcs = tcg_binds tcg
265
266
ctx = mkContext
266
267
(mapMaybe (sequenceA . (occName *** coerce))
267
268
$ getDefiningBindings binds rss)
You can’t perform that action at this time.
0 commit comments