File tree 2 files changed +4
-3
lines changed
hls-alternate-number-format-plugin/src/Ide/Plugin
hls-explicit-fixity-plugin/test
2 files changed +4
-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 )
@@ -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
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ tests = testGroup "Explicit fixity"
34
34
, hoverTest " (<|>)" (Position 21 8 ) " infixl 3 `<|>`"
35
35
, hoverTest " fixity define" (Position 23 11 ) " infixr 7 `>>:`"
36
36
, hoverTest " record" (Position 28 10 ) " infix 9 `>>::`"
37
- , hoverTest " wildcards" (Position 30 5 ) " infixr 7 `>>:` \n \n infix 9 `>>::`"
37
+ , hoverTest " wildcards1" (Position 30 5 ) " infixr 7 `>>:`"
38
+ , hoverTest " wildcards2" (Position 30 5 ) " infix 9 `>>::`"
38
39
, hoverTest " function" (Position 32 11 ) " infixl 1 `f`"
39
40
, hoverTest " signature" (Position 35 2 ) " infixr 9 `>>>:`"
40
41
, hoverTest " operator" (Position 36 2 ) " infixr 9 `>>>:`"
You can’t perform that action at this time.
0 commit comments