File tree 1 file changed +3
-3
lines changed
plugins/hls-alternate-number-format-plugin/src/Ide/Plugin
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ module Ide.Plugin.Literals (
14
14
import Data.Maybe (maybeToList )
15
15
import Data.Text (Text )
16
16
import qualified Data.Text as T
17
- #if __GLASGOW_HASKELL__ = = 908
17
+ #if __GLASGOW_HASKELL__ > = 908
18
18
import qualified Data.Text.Encoding as T
19
19
#endif
20
20
import Development.IDE.GHC.Compat hiding (getSrcSpan )
@@ -72,7 +72,7 @@ getPattern (L (locA -> (RealSrcSpan patSpan _)) pat) = case pat of
72
72
HsInt _ val -> fromIntegralLit patSpan val
73
73
HsRat _ val _ -> fromFractionalLit patSpan val
74
74
_ -> Nothing
75
- #if __GLASGOW_HASKELL__ = = 902
75
+ #if __GLASGOW_HASKELL__ > = 902
76
76
NPat _ (L (RealSrcSpan sSpan _) overLit) _ _ -> fromOverLit overLit sSpan
77
77
NPlusKPat _ _ (L (RealSrcSpan sSpan _) overLit1) _ _ _ -> fromOverLit overLit1 sSpan
78
78
#else
@@ -103,7 +103,7 @@ fromFractionalLit s fl@FL{fl_text} = fmap (\txt' -> FracLiteral (LiteralSrcSpan
103
103
104
104
fromSourceText :: SourceText -> Maybe Text
105
105
fromSourceText = \ case
106
- #if __GLASGOW_HASKELL__ = = 908
106
+ #if __GLASGOW_HASKELL__ > = 908
107
107
SourceText s -> Just $ T. decodeUtf8 $ bytesFS s
108
108
#else
109
109
SourceText s -> Just $ T. pack s
You can’t perform that action at this time.
0 commit comments