@@ -608,7 +608,7 @@ renameActionTests = testGroup "rename actions"
608
608
doc <- createDoc " Testing.hs" " haskell" content
609
609
_ <- waitForDiagnostics
610
610
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 ]
612
612
executeCodeAction fixTypo
613
613
contentAfterAction <- documentContents doc
614
614
let expectedContentAfterAction = T. unlines
@@ -1669,8 +1669,10 @@ suggestImportTests = testGroup "suggest import actions"
1669
1669
, test True [] " f = empty" [] " import Control.Applicative (empty)"
1670
1670
, test True [] " f = empty" [] " import Control.Applicative"
1671
1671
, 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: https://gitlab.haskell.org/ghc/ghc/-/issues/20472"
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: https://gitlab.haskell.org/ghc/ghc/-/issues/20472"
1675
+ $ test True [] " f = Data.List.NonEmpty.nonEmpty" [] " import qualified Data.List.NonEmpty"
1674
1676
, test True [] " f :: Typeable a => a" [" f = undefined" ] " import Data.Typeable (Typeable)"
1675
1677
, test True [] " f = pack" [] " import Data.Text (pack)"
1676
1678
, test True [] " f :: Text" [" f = undefined" ] " import Data.Text (Text)"
@@ -1679,14 +1681,17 @@ suggestImportTests = testGroup "suggest import actions"
1679
1681
, test True [] " f = (.|.)" [] " import Data.Bits (Bits((.|.)))"
1680
1682
, test True [] " f = (.|.)" [] " import Data.Bits ((.|.))"
1681
1683
, 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: https://gitlab.haskell.org/ghc/ghc/-/issues/20472"
1685
+ $ test True
1683
1686
[" qualified Data.Text as T"
1684
1687
] " 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: https://gitlab.haskell.org/ghc/ghc/-/issues/20472"
1689
+ $ test True
1686
1690
[ " qualified Data.Text as T"
1687
1691
, " qualified Data.Function as T"
1688
1692
] " 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: https://gitlab.haskell.org/ghc/ghc/-/issues/20472"
1694
+ $ test True
1690
1695
[ " qualified Data.Text as T"
1691
1696
, " qualified Data.Function as T"
1692
1697
, " qualified Data.Functor as T"
@@ -3784,7 +3789,7 @@ ignoreForGHC92 :: String -> TestTree -> TestTree
3784
3789
ignoreForGHC92 = ignoreFor (BrokenForGHC [GHC92 ])
3785
3790
3786
3791
ignoreForGHC94 :: String -> TestTree -> TestTree
3787
- ignoreForGHC94 = ignoreFor (BrokenForGHC [GHC94 ])
3792
+ ignoreForGHC94 = knownIssueFor Broken (BrokenForGHC [GHC94 ])
3788
3793
3789
3794
data BrokenTarget =
3790
3795
BrokenSpecific OS [GhcVersion ]
0 commit comments