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 c5738cc commit a9fe689Copy full SHA for a9fe689
src/Refact/Internal.hs
@@ -525,9 +525,13 @@ stripLocalBind = \case
525
| let origMG = GHC.fun_matches origBind,
526
GHC.L locMG [GHC.L locMatch origMatch] <- GHC.mg_alts origMG,
527
let origGRHSs = GHC.m_grhss origMatch,
528
+#if MIN_VERSION_ghc(9,12,0)
529
+ [GHC.L loc2 _] <- GHC.grhssGRHSs origGRHSs ->
530
+#else
531
[GHC.L _ (GHC.GRHS _ _ (GHC.L loc2 _))] <- GHC.grhssGRHSs origGRHSs ->
532
+#endif
533
let loc1 = GHC.getLoc (GHC.fun_id origBind)
- newLoc = combineSrcSpansA (GHC.l2l loc1) loc2
534
+ newLoc = combineSrcSpansA (GHC.l2l loc1) (GHC.l2l loc2)
535
withoutLocalBinds =
536
setLocalBind
537
(GHC.EmptyLocalBinds GHC.noExtField)
0 commit comments