Skip to content

Commit

Permalink
main function eval bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Matta committed Mar 12, 2024
1 parent 46ad85b commit 064a32f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/hls-eval-plugin/test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ tests =
, goldenWithEval "Reports an error for an incorrect type with :kind" "T13" "hs"
, 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
, 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"
, goldenWithEval "T4139" "T4139" "hs"
, goldenWithEval "Returns defaulted type for :type +d, admitting multiple whitespaces around arguments" "T16" "hs"
, goldenWithEval ":type reports an error when given with unknown +x option" "T17" "hs"
, goldenWithEval "Reports an error when given with unknown command" "T18" "hs"
Expand Down
7 changes: 7 additions & 0 deletions plugins/hls-eval-plugin/test/testdata/T4139.expected.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module T4139 where

-- >>> 'x'
-- 'x'

main :: IO ()
main = putStrLn "Hello World!"
6 changes: 6 additions & 0 deletions plugins/hls-eval-plugin/test/testdata/T4139.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module T4139 where

-- >>> 'x'

main :: IO ()
main = putStrLn "Hello World!"

0 comments on commit 064a32f

Please sign in to comment.