We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc005c3 commit 6d22882Copy full SHA for 6d22882
plugins/hls-alternate-number-format-plugin/src/Ide/Plugin/Literals.hs
@@ -14,7 +14,7 @@ module Ide.Plugin.Literals (
14
import Data.Maybe (maybeToList)
15
import Data.Text (Text)
16
import qualified Data.Text as T
17
-#if __GLASGOW_HASKELL__ == 908
+#if __GLASGOW_HASKELL__ >= 908
18
import qualified Data.Text.Encoding as T
19
#endif
20
import Development.IDE.GHC.Compat hiding (getSrcSpan)
@@ -103,7 +103,7 @@ fromFractionalLit s fl@FL{fl_text} = fmap (\txt' -> FracLiteral (LiteralSrcSpan
103
104
fromSourceText :: SourceText -> Maybe Text
105
fromSourceText = \case
106
107
SourceText s -> Just $ T.decodeUtf8 $ bytesFS s
108
#else
109
SourceText s -> Just $ T.pack s
0 commit comments