File tree 1 file changed +8
-2
lines changed
ghcide/src/Development/IDE/LSP
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -145,20 +145,26 @@ documentSymbolForDecl (L (locA -> (RealSrcSpan l _)) (InstD _ ClsInstD { cid_ins
145
145
= Just (defDocumentSymbol l :: DocumentSymbol ) { _name = pprText cid_poly_ty
146
146
, _kind = SkInterface
147
147
}
148
- #if !MIN_VERSION_ghc(9,2,0)
148
+ #if MIN_VERSION_ghc(9,2,0)
149
+ documentSymbolForDecl (L (locA -> (RealSrcSpan l _)) (InstD _ DataFamInstD { dfid_inst = DataFamInstDecl FamEqn { feqn_tycon, feqn_pats } }))
150
+ #else
149
151
documentSymbolForDecl (L (RealSrcSpan l _) (InstD _ DataFamInstD { dfid_inst = DataFamInstDecl HsIB { hsib_body = FamEqn { feqn_tycon, feqn_pats } } }))
152
+ #endif
150
153
= Just (defDocumentSymbol l :: DocumentSymbol )
151
154
{ _name = showRdrName (unLoc feqn_tycon) <> " " <> T. unwords
152
155
(map pprText feqn_pats)
153
156
, _kind = SkInterface
154
157
}
158
+ #if MIN_VERSION_ghc(9,2,0)
159
+ documentSymbolForDecl (L (locA -> (RealSrcSpan l _)) (InstD _ TyFamInstD { tfid_inst = TyFamInstDecl _ FamEqn { feqn_tycon, feqn_pats } }))
160
+ #else
155
161
documentSymbolForDecl (L (RealSrcSpan l _) (InstD _ TyFamInstD { tfid_inst = TyFamInstDecl HsIB { hsib_body = FamEqn { feqn_tycon, feqn_pats } } }))
162
+ #endif
156
163
= Just (defDocumentSymbol l :: DocumentSymbol )
157
164
{ _name = showRdrName (unLoc feqn_tycon) <> " " <> T. unwords
158
165
(map pprText feqn_pats)
159
166
, _kind = SkInterface
160
167
}
161
- #endif
162
168
documentSymbolForDecl (L (locA -> (RealSrcSpan l _)) (DerivD _ DerivDecl { deriv_type })) =
163
169
gfindtype deriv_type <&> \ (L (_ :: SrcSpan ) name) ->
164
170
(defDocumentSymbol l :: DocumentSymbol ) { _name = pprText @ (HsType GhcPs )
You can’t perform that action at this time.
0 commit comments