Skip to content

Commit a02e6c7

Browse files
committed
Adapt tactic plugin to last ghcide
1 parent c67de5a commit a02e6c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/tactics/src/Ide/Plugin/Tactic.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import Language.Haskell.LSP.Types
6161
import OccName
6262
import SrcLoc (containsSpan)
6363
import System.Timeout
64+
import TcRnTypes (tcg_binds)
6465

6566

6667
descriptor :: PluginId -> PluginDescriptor
@@ -260,8 +261,8 @@ judgementForHole state nfp range = do
260261

261262
resulting_range <- liftMaybe $ toCurrentRange amapping $ realSrcSpanToRange rss
262263
(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
265266
ctx = mkContext
266267
(mapMaybe (sequenceA . (occName *** coerce))
267268
$ getDefiningBindings binds rss)

0 commit comments

Comments
 (0)