We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e69f46 commit 2f27e9aCopy full SHA for 2f27e9a
ghcide/src/Development/IDE/Plugin/TypeLenses.hs
@@ -456,7 +456,11 @@ findLocalQ = everything (<>) ([] `mkQ` (pure . findWhere) `extQ` findLet)
456
findLet = findLetExpr . unLoc
457
458
findLetExpr :: HsExpr GhcTc -> [HsLocalBinds GhcTc]
459
+#if !MIN_VERSION_ghc(9,9,0)
460
findLetExpr (HsLet _ _ binds _ _) = [binds]
461
+#else
462
+ findLetExpr (HsLet _ binds _) = [binds]
463
+#endif
464
findLetExpr (HsDo _ _ (unLoc -> stmts)) = concatMap (findLetStmt . unLoc) stmts
465
findLetExpr _ = []
466
0 commit comments