Skip to content

Commit 6d10f44

Browse files
committed
ghcide: Fix backwards compatability with ghc-8.8.4
1 parent c98956e commit 6d10f44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ghcide/src/Development/IDE/LSP/Outline.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,8 @@ pprText = pack . showSDocUnsafe . ppr
223223
getConNames' :: ConDecl GhcPs -> [Located (IdP GhcPs)]
224224
getConNames' ConDeclH98 {con_name = name} = [name]
225225
getConNames' ConDeclGADT {con_names = names} = names
226+
#if !MIN_GHC_API_VERSION(8,10,0)
227+
getConNames' (XConDecl NoExt) = []
228+
#elif !MIN_GHC_API_VERSION(9,0,0)
226229
getConNames' (XConDecl x) = noExtCon x
230+
#endif

0 commit comments

Comments
 (0)