Skip to content

Commit 6d22882

Browse files
committed
alternate-number-format: relax __GLASGOW_HASKELL__ bounds
1 parent bc005c3 commit 6d22882

File tree

1 file changed

+2
-2
lines changed
  • plugins/hls-alternate-number-format-plugin/src/Ide/Plugin

1 file changed

+2
-2
lines changed

plugins/hls-alternate-number-format-plugin/src/Ide/Plugin/Literals.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Ide.Plugin.Literals (
1414
import Data.Maybe (maybeToList)
1515
import Data.Text (Text)
1616
import qualified Data.Text as T
17-
#if __GLASGOW_HASKELL__ == 908
17+
#if __GLASGOW_HASKELL__ >= 908
1818
import qualified Data.Text.Encoding as T
1919
#endif
2020
import Development.IDE.GHC.Compat hiding (getSrcSpan)
@@ -103,7 +103,7 @@ fromFractionalLit s fl@FL{fl_text} = fmap (\txt' -> FracLiteral (LiteralSrcSpan
103103

104104
fromSourceText :: SourceText -> Maybe Text
105105
fromSourceText = \case
106-
#if __GLASGOW_HASKELL__ == 908
106+
#if __GLASGOW_HASKELL__ >= 908
107107
SourceText s -> Just $ T.decodeUtf8 $ bytesFS s
108108
#else
109109
SourceText s -> Just $ T.pack s

0 commit comments

Comments
 (0)