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 608cfd9 commit 26a6ca6Copy full SHA for 26a6ca6
plugins/hls-alternate-number-format-plugin/src/Ide/Plugin/Literals.hs
@@ -78,8 +78,13 @@ getPattern (L (locA -> (RealSrcSpan patSpan _)) pat) = case pat of
78
HsInt _ val -> fromIntegralLit patSpan val
79
HsRat _ val _ -> fromFractionalLit patSpan val
80
_ -> Nothing
81
+#if __GLASGOW_HASKELL__ == 902
82
+ NPat _ (L (RealSrcSpan sSpan _) overLit) _ _ -> fromOverLit overLit sSpan
83
+ NPlusKPat _ _ (L (RealSrcSpan sSpan _) overLit1) _ _ _ -> fromOverLit overLit1 sSpan
84
+#else
85
NPat _ (L (locA -> (RealSrcSpan sSpan _)) overLit) _ _ -> fromOverLit overLit sSpan
86
NPlusKPat _ _ (L (locA -> (RealSrcSpan sSpan _)) overLit1) _ _ _ -> fromOverLit overLit1 sSpan
87
+#endif
88
89
getPattern _ = Nothing
90
0 commit comments