From 2a78641a2502e7871d2890f3d0950e0051b8adad Mon Sep 17 00:00:00 2001 From: Jon Shen Date: Sun, 28 Nov 2021 22:39:04 -0500 Subject: [PATCH] fix compat 6 --- plugins/hls-pragmas-plugin/src/Ide/Plugin/Pragmas.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hls-pragmas-plugin/src/Ide/Plugin/Pragmas.hs b/plugins/hls-pragmas-plugin/src/Ide/Plugin/Pragmas.hs index d611f63c85..c7ec0cda5f 100644 --- a/plugins/hls-pragmas-plugin/src/Ide/Plugin/Pragmas.hs +++ b/plugins/hls-pragmas-plugin/src/Ide/Plugin/Pragmas.hs @@ -528,7 +528,7 @@ lexUntilNextLineIncl :: P (Located Token) lexUntilNextLineIncl = do PState{ last_loc } <- getPState #if MIN_VERSION_ghc(9,0,0) - let PsSpan{ psRealSpan } = last_loc + let PsSpan{ psRealSpan = lastRealSrcSpan } = last_loc #else let lastRealSrcSpan = last_loc #endif