Skip to content

Commit 064a32f

Browse files
author
Peter Matta
committed
main function eval bug
1 parent 46ad85b commit 064a32f

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

plugins/hls-eval-plugin/test/Main.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ tests =
8888
, goldenWithEval "Reports an error for an incorrect type with :kind" "T13" "hs"
8989
, goldenWithEval' "Returns a fully-instantiated type for :type" "T14" "hs" (if ghcVersion >= GHC98 then "ghc98.expected" else "expected") -- See https://gitlab.haskell.org/ghc/ghc/-/issues/24069
9090
, knownBrokenForGhcVersions [GHC92, GHC94, GHC96, GHC98] "type +v does not work anymore with 9.2" $ goldenWithEval "Returns an uninstantiated type for :type +v, admitting multiple whitespaces around arguments" "T15" "hs"
91+
, goldenWithEval "T4139" "T4139" "hs"
9192
, goldenWithEval "Returns defaulted type for :type +d, admitting multiple whitespaces around arguments" "T16" "hs"
9293
, goldenWithEval ":type reports an error when given with unknown +x option" "T17" "hs"
9394
, goldenWithEval "Reports an error when given with unknown command" "T18" "hs"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module T4139 where
2+
3+
-- >>> 'x'
4+
-- 'x'
5+
6+
main :: IO ()
7+
main = putStrLn "Hello World!"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module T4139 where
2+
3+
-- >>> 'x'
4+
5+
main :: IO ()
6+
main = putStrLn "Hello World!"

0 commit comments

Comments
 (0)