@@ -3768,7 +3768,7 @@ topLevelCompletionTests = [
3768
3768
" class"
3769
3769
[" bar :: Xx" , " xxx = ()" , " -- | haddock" , " class Xxx a" ]
3770
3770
(Position 0 9 )
3771
- [(" Xxx" , CiClass , " Xxx" , False , True , Nothing )],
3771
+ [(" Xxx" , CiInterface , " Xxx" , False , True , Nothing )],
3772
3772
completionTest
3773
3773
" records"
3774
3774
[" data Person = Person { _personName:: String, _personAge:: Int}" , " bar = Person { _pers }" ]
@@ -3862,7 +3862,7 @@ nonLocalCompletionTests =
3862
3862
" type"
3863
3863
[" {-# OPTIONS_GHC -Wall #-}" , " module A () where" , " f :: Bo" , " f = True" ]
3864
3864
(Position 2 7 )
3865
- [ (" Bounded" , CiClass , " Bounded ${1:*}" , True , True , Nothing ),
3865
+ [ (" Bounded" , CiInterface , " Bounded ${1:*}" , True , True , Nothing ),
3866
3866
(" Bool" , CiStruct , " Bool " , True , True , Nothing )
3867
3867
],
3868
3868
completionTest
@@ -4163,7 +4163,7 @@ outlineTests = testGroup
4163
4163
let source = T. unlines [" {-# language TypeFamilies #-}" , " type family A" ]
4164
4164
docId <- createDoc " A.hs" " haskell" source
4165
4165
symbols <- getDocumentSymbols docId
4166
- liftIO $ symbols @?= Left [docSymbolD " A" " type family" SkClass (R 1 0 1 13 )]
4166
+ liftIO $ symbols @?= Left [docSymbolD " A" " type family" SkFunction (R 1 0 1 13 )]
4167
4167
, testSessionWait " type family instance " $ do
4168
4168
let source = T. unlines
4169
4169
[ " {-# language TypeFamilies #-}"
@@ -4173,14 +4173,14 @@ outlineTests = testGroup
4173
4173
docId <- createDoc " A.hs" " haskell" source
4174
4174
symbols <- getDocumentSymbols docId
4175
4175
liftIO $ symbols @?= Left
4176
- [ docSymbolD " A a" " type family" SkClass (R 1 0 1 15 )
4176
+ [ docSymbolD " A a" " type family" SkFunction (R 1 0 1 15 )
4177
4177
, docSymbol " A ()" SkInterface (R 2 0 2 23 )
4178
4178
]
4179
4179
, testSessionWait " data family" $ do
4180
4180
let source = T. unlines [" {-# language TypeFamilies #-}" , " data family A" ]
4181
4181
docId <- createDoc " A.hs" " haskell" source
4182
4182
symbols <- getDocumentSymbols docId
4183
- liftIO $ symbols @?= Left [docSymbolD " A" " data family" SkClass (R 1 0 1 11 )]
4183
+ liftIO $ symbols @?= Left [docSymbolD " A" " data family" SkFunction (R 1 0 1 11 )]
4184
4184
, testSessionWait " data family instance " $ do
4185
4185
let source = T. unlines
4186
4186
[ " {-# language TypeFamilies #-}"
@@ -4190,7 +4190,7 @@ outlineTests = testGroup
4190
4190
docId <- createDoc " A.hs" " haskell" source
4191
4191
symbols <- getDocumentSymbols docId
4192
4192
liftIO $ symbols @?= Left
4193
- [ docSymbolD " A a" " data family" SkClass (R 1 0 1 11 )
4193
+ [ docSymbolD " A a" " data family" SkFunction (R 1 0 1 11 )
4194
4194
, docSymbol " A ()" SkInterface (R 2 0 2 25 )
4195
4195
]
4196
4196
, testSessionWait " constant" $ do
@@ -4304,7 +4304,7 @@ outlineTests = testGroup
4304
4304
(Just $ List cc)
4305
4305
classSymbol name loc cc = DocumentSymbol name
4306
4306
(Just " class" )
4307
- SkClass
4307
+ SkInterface
4308
4308
Nothing
4309
4309
loc
4310
4310
loc
0 commit comments