@@ -32,11 +32,9 @@ import GHC.Types.SrcLoc
3232
3333-- See Note [Guidelines For Using CPP In GHCIDE Import Statements]
3434
35- #if MIN_VERSION_ghc(9,5,0)
3635import GHC.Unit.Home.ModInfo
3736import GHC.Unit.Module.Location (ModLocation (.. ))
3837import GHC.Unit.Module.WholeCoreBindings
39- #endif
4038
4139-- Orphan instance for Shake.hs
4240-- https://hub.darcs.net/ross/transformers/issue/86
@@ -68,19 +66,15 @@ instance NFData Unlinked where
6866 rnf (DotA f) = rnf f
6967 rnf (DotDLL f) = rnf f
7068 rnf (BCOs a b) = seqCompiledByteCode a `seq` liftRnf rwhnf b
71- #if MIN_VERSION_ghc(9,5,0)
7269 rnf (CoreBindings wcb) = rnf wcb
7370 rnf (LoadedBCOs us) = rnf us
7471#endif
75- #endif
7672
77- #if MIN_VERSION_ghc(9,5,0)
7873instance NFData WholeCoreBindings where
7974#if MIN_VERSION_ghc(9,11,0)
8075 rnf (WholeCoreBindings bs m ml f) = rnf bs `seq` rnf m `seq` rnf ml `seq` rnf f
8176#else
8277 rnf (WholeCoreBindings bs m ml) = rnf bs `seq` rnf m `seq` rnf ml
83- #endif
8478
8579instance NFData ModLocation where
8680#if MIN_VERSION_ghc(9,11,0)
@@ -103,12 +97,6 @@ instance NFData SB.StringBuffer where rnf = rwhnf
10397instance Show Module where
10498 show = moduleNameString . moduleName
10599
106-
107- #if !MIN_VERSION_ghc(9,5,0)
108- instance (NFData l , NFData e ) => NFData (GenLocated l e ) where
109- rnf (L l e) = rnf l `seq` rnf e
110- #endif
111-
112100instance Show ModSummary where
113101 show = show . ms_mod
114102
@@ -191,11 +179,6 @@ instance NFData Type where
191179instance Show a => Show (Bag a ) where
192180 show = show . bagToList
193181
194- #if !MIN_VERSION_ghc(9,5,0)
195- instance NFData HsDocString where
196- rnf = rwhnf
197- #endif
198-
199182instance Show ModGuts where
200183 show _ = " modguts"
201184instance NFData ModGuts where
@@ -204,11 +187,7 @@ instance NFData ModGuts where
204187instance NFData (ImportDecl GhcPs ) where
205188 rnf = rwhnf
206189
207- #if MIN_VERSION_ghc(9,5,0)
208190instance (NFData (HsModule a )) where
209- #else
210- instance (NFData HsModule ) where
211- #endif
212191 rnf = rwhnf
213192
214193instance Show OccName where show = unpack . printOutputable
@@ -239,10 +218,8 @@ instance NFData UnitId where
239218instance NFData NodeKey where
240219 rnf = rwhnf
241220
242- #if MIN_VERSION_ghc(9,5,0)
243221instance NFData HomeModLinkable where
244222 rnf = rwhnf
245- #endif
246223
247224instance NFData (HsExpr (GhcPass Renamed )) where
248225 rnf = rwhnf
@@ -261,16 +238,3 @@ instance NFData Extension where
261238
262239instance NFData (UniqFM Name [Name ]) where
263240 rnf (ufmToIntMap -> m) = rnf m
264-
265- #if !MIN_VERSION_ghc(9,5,0)
266- instance NFData DuplicateRecordFields where
267- rnf DuplicateRecordFields = ()
268- rnf NoDuplicateRecordFields = ()
269-
270- instance NFData FieldSelectors where
271- rnf FieldSelectors = ()
272- rnf NoFieldSelectors = ()
273-
274- instance NFData FieldLabel where
275- rnf (FieldLabel a b c d) = rnf a `seq` rnf b `seq` rnf c `seq` rnf d
276- #endif
0 commit comments