Skip to content

Commit 2f27e9a

Browse files
committed
HsLet compatible
1 parent 0e69f46 commit 2f27e9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ghcide/src/Development/IDE/Plugin/TypeLenses.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,11 @@ findLocalQ = everything (<>) ([] `mkQ` (pure . findWhere) `extQ` findLet)
456456
findLet = findLetExpr . unLoc
457457

458458
findLetExpr :: HsExpr GhcTc -> [HsLocalBinds GhcTc]
459+
#if !MIN_VERSION_ghc(9,9,0)
459460
findLetExpr (HsLet _ _ binds _ _) = [binds]
461+
#else
462+
findLetExpr (HsLet _ binds _) = [binds]
463+
#endif
460464
findLetExpr (HsDo _ _ (unLoc -> stmts)) = concatMap (findLetStmt . unLoc) stmts
461465
findLetExpr _ = []
462466

0 commit comments

Comments
 (0)