@@ -37,6 +37,7 @@ module Development.IDE.GHC.Compat(
3737 GHC.ModLocation,
3838 Module.addBootSuffix,
3939 pattern ModLocation,
40+ getConArgs,
4041
4142 module GHC
4243 ) where
@@ -48,7 +49,12 @@ import Fingerprint (Fingerprint)
4849import qualified Module
4950
5051import qualified GHC
51−import GHC hiding (ClassOpSig, DerivD, ForD, IEThingAll, IEThingWith, InstD, TyClD, ValD, ModLocation)
52+import GHC hiding (
53+ ClassOpSig, DerivD, ForD, IEThingAll, IEThingWith, InstD, TyClD, ValD, ModLocation
54+#if MIN_GHC_API_VERSION(8,6,0)
55+ , getConArgs
56+#endif
57+ )
5258import qualified HeaderInfo as Hdr
5359import Avail
5460import ErrUtils (ErrorMessages)
@@ -289,3 +295,10 @@ getModuleHash = mi_mod_hash . mi_final_exts
289295#else
290296getModuleHash = mi_mod_hash
291297#endif
298+
299+getConArgs :: ConDecl pass -> HsConDeclDetails pass
300+#if MIN_GHC_API_VERSION(8,6,0)
301+getConArgs = GHC.getConArgs
302+#else
303+getConArgs = GHC.getConDetails
304+#endif