You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/hls-eval-plugin/test/Main.hs
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,7 @@ tests =
74
74
evalInFile "T8.hs""-- >>> noFunctionWithThisName""-- Variable not in scope: noFunctionWithThisName"
75
75
evalInFile "T8.hs""-- >>> res = \"a\" + \"bc\""$
76
76
if
77
+
| ghcVersion >=GHC96->"-- No instance for `Num String' arising from a use of `+'\n-- In the expression: \"a\" + \"bc\"\n-- In an equation for `res': res = \"a\" + \"bc\""
77
78
| ghcVersion >=GHC92->"-- No instance for (Num String) arising from a use of `+'\n-- In the expression: \"a\" + \"bc\"\n-- In an equation for `res': res = \"a\" + \"bc\""
78
79
| ghcVersion ==GHC90->"-- No instance for (Num String) arising from a use of ‘+’"
79
80
|otherwise->"-- No instance for (Num [Char]) arising from a use of ‘+’"
@@ -89,7 +90,7 @@ tests =
89
90
, goldenWithEval' "Shows a kind with :kind""T12""hs" (if ghcVersion >=GHC92then"ghc92.expected"else"expected")
90
91
, goldenWithEval' "Reports an error for an incorrect type with :kind""T13""hs" (if ghcVersion >=GHC92then"ghc92.expected"else"expected")
91
92
, goldenWithEval "Returns a fully-instantiated type for :type""T14""hs"
92
-
, knownBrokenForGhcVersions [GHC92, GHC94] "type +v does not work anymore with 9.2"$ goldenWithEval "Returns an uninstantiated type for :type +v, admitting multiple whitespaces around arguments""T15""hs"
93
+
, knownBrokenForGhcVersions [GHC92, GHC94, GHC96] "type +v does not work anymore with 9.2"$ goldenWithEval "Returns an uninstantiated type for :type +v, admitting multiple whitespaces around arguments""T15""hs"
93
94
, goldenWithEval "Returns defaulted type for :type +d, admitting multiple whitespaces around arguments""T16""hs"
94
95
, goldenWithEval' ":type reports an error when given with unknown +x option""T17""hs" (if ghcVersion >=GHC92then"ghc92.expected"else"expected")
95
96
, goldenWithEval "Reports an error when given with unknown command""T18""hs"
@@ -140,7 +141,9 @@ tests =
140
141
, goldenWithEval "IO expressions are supported, stdout/stderr output is ignored""TIO""hs"
0 commit comments