@@ -596,13 +596,19 @@ diagnosticTests = testGroup "diagnostics"
596
596
expectDiagnostics
597
597
[ ( " Main.hs"
598
598
, [(DsError , (6 , 9 ),
599
- if ghcVersion >= GHC94
600
- then " Variable not in scope: map" -- See https://gitlab.haskell.org/ghc/ghc/-/issues/22130
601
- else " Not in scope: \8216ThisList.map\8217" )
599
+ if ghcVersion >= GHC96 then
600
+ " Variable not in scope: ThisList.map"
601
+ else if ghcVersion >= GHC94 then
602
+ " Variable not in scope: map" -- See https://gitlab.haskell.org/ghc/ghc/-/issues/22130
603
+ else
604
+ " Not in scope: \8216ThisList.map\8217" )
602
605
,(DsError , (7 , 9 ),
603
- if ghcVersion >= GHC94
604
- then " Variable not in scope: x" -- See https://gitlab.haskell.org/ghc/ghc/-/issues/22130
605
- else " Not in scope: \8216BaseList.x\8217" )
606
+ if ghcVersion >= GHC96 then
607
+ " Variable not in scope: BaseList.x"
608
+ else if ghcVersion >= GHC94 then
609
+ " Variable not in scope: x" -- See https://gitlab.haskell.org/ghc/ghc/-/issues/22130
610
+ else
611
+ " Not in scope: \8216BaseList.x\8217" )
606
612
]
607
613
)
608
614
]
@@ -950,7 +956,7 @@ addSigLensesTests =
950
956
, (" head = 233" , " head :: Integer" )
951
957
, (" rank2Test (k :: forall a . a -> a) = (k 233 :: Int, k \" QAQ\" )" , " rank2Test :: (forall a. a -> a) -> (Int, " <> listOfChar <> " )" )
952
958
, (" symbolKindTest = Proxy @\" qwq\" " , " symbolKindTest :: Proxy \" qwq\" " )
953
- , (" promotedKindTest = Proxy @Nothing" , " promotedKindTest :: Proxy 'Nothing" )
959
+ , (" promotedKindTest = Proxy @Nothing" , if ghcVersion >= GHC96 then " promotedKindTest :: Proxy Nothing " else " promotedKindTest :: Proxy 'Nothing" )
954
960
, (" typeOperatorTest = Refl" , if ghcVersion >= GHC92 then " typeOperatorTest :: forall {k} {a :: k}. a :~: a" else " typeOperatorTest :: a :~: a" )
955
961
, (" notInScopeTest = mkCharType" , " notInScopeTest :: String -> Data.Data.DataType" )
956
962
]
@@ -1768,7 +1774,7 @@ nonLocalCompletionTests =
1768
1774
[]
1769
1775
]
1770
1776
where
1771
- brokenForWinGhc = knownBrokenFor (BrokenSpecific Windows [GHC810 , GHC90 , GHC92 , GHC94 ]) " Windows has strange things in scope for some reason"
1777
+ brokenForWinGhc = knownBrokenFor (BrokenSpecific Windows [GHC810 , GHC90 , GHC92 , GHC94 , GHC96 ]) " Windows has strange things in scope for some reason"
1772
1778
1773
1779
otherCompletionTests :: [TestTree ]
1774
1780
otherCompletionTests = [
@@ -2000,15 +2006,15 @@ completionDocTests =
2000
2006
, " bar = fo"
2001
2007
]
2002
2008
test doc (Position 2 8 ) " foo" Nothing [" *Defined at line 2, column 1 in this module*\n " ]
2003
- , testSession " local single line doc without ' \\ n' " $ do
2009
+ , testSession " local single line doc without newline " $ do
2004
2010
doc <- createDoc " A.hs" " haskell" $ T. unlines
2005
2011
[ " module A where"
2006
2012
, " -- |docdoc"
2007
2013
, " foo = ()"
2008
2014
, " bar = fo"
2009
2015
]
2010
2016
test doc (Position 3 8 ) " foo" Nothing [" *Defined at line 3, column 1 in this module*\n * * *\n\n\n docdoc\n " ]
2011
- , testSession " local multi line doc with ' \\ n' " $ do
2017
+ , testSession " local multi line doc with newline " $ do
2012
2018
doc <- createDoc " A.hs" " haskell" $ T. unlines
2013
2019
[ " module A where"
2014
2020
, " -- | abcabc"
@@ -2017,7 +2023,7 @@ completionDocTests =
2017
2023
, " bar = fo"
2018
2024
]
2019
2025
test doc (Position 4 8 ) " foo" Nothing [" *Defined at line 4, column 1 in this module*\n * * *\n\n\n abcabc\n " ]
2020
- , testSession " local multi line doc without ' \\ n' " $ do
2026
+ , testSession " local multi line doc without newline " $ do
2021
2027
doc <- createDoc " A.hs" " haskell" $ T. unlines
2022
2028
[ " module A where"
2023
2029
, " -- | abcabc"
@@ -2057,10 +2063,10 @@ completionDocTests =
2057
2063
test doc (Position 1 7 ) " id" (Just $ T. length expected) [expected]
2058
2064
]
2059
2065
where
2060
- brokenForGhc9 = knownBrokenFor (BrokenForGHC [GHC90 , GHC92 , GHC94 ]) " Completion doc doesn't support ghc9"
2066
+ brokenForGhc9 = knownBrokenFor (BrokenForGHC [GHC90 , GHC92 , GHC94 , GHC96 ]) " Completion doc doesn't support ghc9"
2061
2067
brokenForWinGhc9 = knownBrokenFor (BrokenSpecific Windows [GHC90 , GHC92 ]) " Extern doc doesn't support Windows for ghc9.2"
2062
2068
-- https://gitlab.haskell.org/ghc/ghc/-/issues/20903
2063
- brokenForMacGhc9 = knownBrokenFor (BrokenSpecific MacOS [GHC90 , GHC92 , GHC94 ]) " Extern doc doesn't support MacOS for ghc9"
2069
+ brokenForMacGhc9 = knownBrokenFor (BrokenSpecific MacOS [GHC90 , GHC92 , GHC94 , GHC96 ]) " Extern doc doesn't support MacOS for ghc9"
2064
2070
test doc pos label mn expected = do
2065
2071
_ <- waitForDiagnostics
2066
2072
compls <- getCompletions doc pos
@@ -2108,7 +2114,7 @@ highlightTests = testGroup "highlight"
2108
2114
, DocumentHighlight (R 6 10 6 13 ) (Just HkRead )
2109
2115
, DocumentHighlight (R 7 12 7 15 ) (Just HkRead )
2110
2116
]
2111
- , knownBrokenForGhcVersions [GHC90 , GHC92 , GHC94 ] " Ghc9 highlights the constructor and not just this field" $
2117
+ , knownBrokenForGhcVersions [GHC90 , GHC92 , GHC94 , GHC96 ] " Ghc9 highlights the constructor and not just this field" $
2112
2118
testSessionWait " record" $ do
2113
2119
doc <- createDoc " A.hs" " haskell" recsource
2114
2120
_ <- waitForDiagnostics
0 commit comments