@@ -32,11 +32,9 @@ import GHC.Types.SrcLoc
32
32
33
33
-- See Note [Guidelines For Using CPP In GHCIDE Import Statements]
34
34
35
- #if MIN_VERSION_ghc(9,5,0)
36
35
import GHC.Unit.Home.ModInfo
37
36
import GHC.Unit.Module.Location (ModLocation (.. ))
38
37
import GHC.Unit.Module.WholeCoreBindings
39
- #endif
40
38
41
39
-- Orphan instance for Shake.hs
42
40
-- https://hub.darcs.net/ross/transformers/issue/86
@@ -68,13 +66,10 @@ instance NFData Unlinked where
68
66
rnf (DotA f) = rnf f
69
67
rnf (DotDLL f) = rnf f
70
68
rnf (BCOs a b) = seqCompiledByteCode a `seq` liftRnf rwhnf b
71
- #if MIN_VERSION_ghc(9,5,0)
72
69
rnf (CoreBindings wcb) = rnf wcb
73
70
rnf (LoadedBCOs us) = rnf us
74
71
#endif
75
- #endif
76
72
77
- #if MIN_VERSION_ghc(9,5,0)
78
73
instance NFData WholeCoreBindings where
79
74
#if MIN_VERSION_ghc(9,11,0)
80
75
rnf (WholeCoreBindings bs m ml f) = rnf bs `seq` rnf m `seq` rnf ml `seq` rnf f
@@ -88,7 +83,6 @@ instance NFData ModLocation where
88
83
#else
89
84
rnf (ModLocation mf f1 f2 f3 f4 f5) = rnf mf `seq` rnf f1 `seq` rnf f2 `seq` rnf f3 `seq` rnf f4 `seq` rnf f5
90
85
#endif
91
- #endif
92
86
93
87
instance Show PackageFlag where show = unpack . printOutputable
94
88
instance Show InteractiveImport where show = unpack . printOutputable
@@ -103,12 +97,6 @@ instance NFData SB.StringBuffer where rnf = rwhnf
103
97
instance Show Module where
104
98
show = moduleNameString . moduleName
105
99
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
-
112
100
instance Show ModSummary where
113
101
show = show . ms_mod
114
102
@@ -191,11 +179,6 @@ instance NFData Type where
191
179
instance Show a => Show (Bag a ) where
192
180
show = show . bagToList
193
181
194
- #if !MIN_VERSION_ghc(9,5,0)
195
- instance NFData HsDocString where
196
- rnf = rwhnf
197
- #endif
198
-
199
182
instance Show ModGuts where
200
183
show _ = " modguts"
201
184
instance NFData ModGuts where
@@ -204,11 +187,7 @@ instance NFData ModGuts where
204
187
instance NFData (ImportDecl GhcPs ) where
205
188
rnf = rwhnf
206
189
207
- #if MIN_VERSION_ghc(9,5,0)
208
190
instance (NFData (HsModule a )) where
209
- #else
210
- instance (NFData HsModule ) where
211
- #endif
212
191
rnf = rwhnf
213
192
214
193
instance Show OccName where show = unpack . printOutputable
@@ -239,10 +218,8 @@ instance NFData UnitId where
239
218
instance NFData NodeKey where
240
219
rnf = rwhnf
241
220
242
- #if MIN_VERSION_ghc(9,5,0)
243
221
instance NFData HomeModLinkable where
244
222
rnf = rwhnf
245
- #endif
246
223
247
224
instance NFData (HsExpr (GhcPass Renamed )) where
248
225
rnf = rwhnf
@@ -261,16 +238,3 @@ instance NFData Extension where
261
238
262
239
instance NFData (UniqFM Name [Name ]) where
263
240
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