@@ -34,20 +34,19 @@ tests = testGroup "GADT"
3434 , runTest " ConstructorContext" " ConstructorContext" 2 0 2 38
3535 , runTest " Context" " Context" 2 0 4 41
3636 , runTest " Pragma" " Pragma" 2 0 3 29
37- , runTest " SingleDerivingGHC92 " " SingleDerivingGHC92 " 2 0 3 14
38- , gadtPragmaTest " ghc-9.2 don't need to insert GADTs pragma" False
37+ , runTest " SingleDeriving " " SingleDeriving " 2 0 3 14
38+ , gadtPragmaTest " no need to insert GADTs pragma"
3939 ]
4040
41- gadtPragmaTest :: TestName -> Bool -> TestTree
42- gadtPragmaTest title hasGADT = testCase title
41+ gadtPragmaTest :: TestName -> TestTree
42+ gadtPragmaTest title = testCase title
4343 $ withCanonicalTempDir
4444 $ \ dir -> runSessionWithServer def gadtPlugin dir $ do
4545 doc <- createDoc " A.hs" " haskell" (T. unlines [" module A where" , " data Foo = Bar" ])
4646 _ <- waitForProgressDone
4747 (act: _) <- findGADTAction <$> getCodeActions doc (Range (Position 1 0 ) (Position 1 1 ))
4848 executeCodeAction act
4949 let expected = T. unlines $
50- [" {-# LANGUAGE GADTs #-}" | hasGADT] ++
5150 [" module A where" , " data Foo where" , " Bar :: Foo" ]
5251 contents <- skipManyTill anyMessage (getDocumentEdit doc)
5352 liftIO $ contents @?= expected
0 commit comments