@@ -608,7 +608,7 @@ renameActionTests = testGroup "rename actions"
608608 doc <- createDoc " Testing.hs" " haskell" content
609609 _ <- waitForDiagnostics
610610 actionsOrCommands <- getCodeActions doc (Range (Position 3 12 ) (Position 3 20 ))
611- [fixTypo] <- pure [action | InR action@ CodeAction { _title = actionTitle } <- actionsOrCommands, " monus" `T.isInfixOf` actionTitle ]
611+ [fixTypo] <- pure [action | InR action@ CodeAction { _title = actionTitle } <- actionsOrCommands, " monus" `T.isInfixOf` actionTitle , " Replace " `T.isInfixOf` actionTitle ]
612612 executeCodeAction fixTypo
613613 contentAfterAction <- documentContents doc
614614 let expectedContentAfterAction = T. unlines
@@ -1669,8 +1669,10 @@ suggestImportTests = testGroup "suggest import actions"
16691669 , test True [] " f = empty" [] " import Control.Applicative (empty)"
16701670 , test True [] " f = empty" [] " import Control.Applicative"
16711671 , test True [] " f = (&)" [] " import Data.Function ((&))"
1672- , test True [] " f = NE.nonEmpty" [] " import qualified Data.List.NonEmpty as NE"
1673- , test True [] " f = Data.List.NonEmpty.nonEmpty" [] " import qualified Data.List.NonEmpty"
1672+ , ignoreForGHC94 " On GHC 9.4 the error message doesn't contain the qualified module name"
1673+ $ test True [] " f = NE.nonEmpty" [] " import qualified Data.List.NonEmpty as NE"
1674+ , ignoreForGHC94 " On GHC 9.4 the error message doesn't contain the qualified module name"
1675+ $ test True [] " f = Data.List.NonEmpty.nonEmpty" [] " import qualified Data.List.NonEmpty"
16741676 , test True [] " f :: Typeable a => a" [" f = undefined" ] " import Data.Typeable (Typeable)"
16751677 , test True [] " f = pack" [] " import Data.Text (pack)"
16761678 , test True [] " f :: Text" [" f = undefined" ] " import Data.Text (Text)"
@@ -1679,21 +1681,26 @@ suggestImportTests = testGroup "suggest import actions"
16791681 , test True [] " f = (.|.)" [] " import Data.Bits (Bits((.|.)))"
16801682 , test True [] " f = (.|.)" [] " import Data.Bits ((.|.))"
16811683 , test True [] " f :: a ~~ b" [] " import Data.Type.Equality ((~~))"
1682- , test True
1684+ , ignoreForGHC94 " On GHC 9.4 the error message doesn't contain the qualified module name"
1685+ $ test True
16831686 [" qualified Data.Text as T"
16841687 ] " f = T.putStrLn" [] " import qualified Data.Text.IO as T"
1685- , test True
1688+ , ignoreForGHC94 " On GHC 9.4 the error message doesn't contain the qualified module name"
1689+ $ test True
16861690 [ " qualified Data.Text as T"
16871691 , " qualified Data.Function as T"
16881692 ] " f = T.putStrLn" [] " import qualified Data.Text.IO as T"
1689- , test True
1693+ , ignoreForGHC94 " On GHC 9.4 the error message doesn't contain the qualified module name"
1694+ $ test True
16901695 [ " qualified Data.Text as T"
16911696 , " qualified Data.Function as T"
16921697 , " qualified Data.Functor as T"
16931698 , " qualified Data.Data as T"
16941699 ] " f = T.putStrLn" [] " import qualified Data.Text.IO as T"
1695- , test True [] " f = (.|.)" [] " import Data.Bits (Bits(..))"
1696- , test True [] " f = empty" [] " import Control.Applicative (Alternative(..))"
1700+ , ignoreForGHC94 " On GHC 9.4 the error message doesn't contain the qualified module name"
1701+ $ test True [] " f = (.|.)" [] " import Data.Bits (Bits(..))"
1702+ , ignoreForGHC94 " On GHC 9.4 the error message doesn't contain the qualified module name"
1703+ $ test True [] " f = empty" [] " import Control.Applicative (Alternative(..))"
16971704 ]
16981705 , expectFailBecause " importing pattern synonyms is unsupported" $ test True [] " k (Some x) = x" [] " import B (pattern Some)"
16991706 ]
@@ -3784,7 +3791,7 @@ ignoreForGHC92 :: String -> TestTree -> TestTree
37843791ignoreForGHC92 = ignoreFor (BrokenForGHC [GHC92 ])
37853792
37863793ignoreForGHC94 :: String -> TestTree -> TestTree
3787- ignoreForGHC94 = ignoreFor (BrokenForGHC [GHC94 ])
3794+ ignoreForGHC94 = knownIssueFor Broken (BrokenForGHC [GHC94 ])
37883795
37893796data BrokenTarget =
37903797 BrokenSpecific OS [GhcVersion ]
0 commit comments