File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
plugins/hls-alternate-number-format-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +2
-2
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 )
@@ -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