Skip to content

Commit 5c8c1cc

Browse files
committed
We unconditionally depend on deepseq >= 1.4.3 now
1 parent ff39add commit 5c8c1cc

File tree

3 files changed

+3
-25
lines changed

3 files changed

+3
-25
lines changed

hnix.cabal

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ library
496496
, containers >= 0.5.11.0 && < 0.7
497497
, contravariant >= 1.5 && < 1.6
498498
, data-fix >= 0.2.0 && < 0.3
499-
, deepseq >=1.4.2 && <1.5
499+
, deepseq >=1.4.3 && <1.5
500500
, dependent-sum >= 0.4 && < 0.5 || >= 0.6.2.0 && < 0.7
501501
, deriving-compat >=0.3 && <0.6
502502
, directory >= 1.3.1 && < 1.4
@@ -633,7 +633,7 @@ test-suite hnix-tests
633633
, bytestring
634634
, containers
635635
, data-fix
636-
, deepseq >=1.4.2 && <1.5
636+
, deepseq >=1.4.3 && <1.5
637637
, dependent-sum
638638
, directory
639639
, exceptions
@@ -692,7 +692,7 @@ benchmark hnix-benchmarks
692692
, containers
693693
, criterion
694694
, data-fix
695-
, deepseq >=1.4.2 && <1.5
695+
, deepseq >=1.4.3 && <1.5
696696
, exceptions
697697
, filepath
698698
, hashing

src/Nix/Expr/Types.hs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,7 @@ data NExprF r
127127

128128
instance Hashable1 NExprF
129129

130-
#if MIN_VERSION_deepseq(1, 4, 3)
131130
instance NFData1 NExprF
132-
#endif
133131

134132
#ifdef MIN_VERSION_serialise
135133
instance Serialise r => Serialise (NExprF r)
@@ -168,9 +166,7 @@ data Binding r
168166

169167
instance Hashable1 Binding
170168

171-
#if MIN_VERSION_deepseq(1, 4, 3)
172169
instance NFData1 Binding
173-
#endif
174170

175171
#ifdef MIN_VERSION_serialise
176172
instance Serialise r => Serialise (Binding r)
@@ -190,9 +186,7 @@ data Params r
190186

191187
instance Hashable1 Params
192188

193-
#if MIN_VERSION_deepseq(1, 4, 3)
194189
instance NFData1 Params
195-
#endif
196190

197191
#ifdef MIN_VERSION_serialise
198192
instance Serialise r => Serialise (Params r)
@@ -219,9 +213,7 @@ instance Hashable2 Antiquoted where
219213
liftHashWithSalt2 _ hb salt (Antiquoted b) =
220214
hb (salt `hashWithSalt` (2 :: Int)) b
221215

222-
#if MIN_VERSION_deepseq(1, 4, 3)
223216
instance NFData v => NFData1 (Antiquoted v)
224-
#endif
225217

226218
#ifdef MIN_VERSION_serialise
227219
instance (Serialise v, Serialise r) => Serialise (Antiquoted v r)
@@ -243,9 +235,7 @@ data NString r
243235

244236
instance Hashable1 NString
245237

246-
#if MIN_VERSION_deepseq(1, 4, 3)
247238
instance NFData1 NString
248-
#endif
249239

250240
#ifdef MIN_VERSION_serialise
251241
instance Serialise r => Serialise (NString r)
@@ -304,13 +294,11 @@ instance Generic1 NKeyName where
304294
from1 = id
305295
to1 = id
306296

307-
#if MIN_VERSION_deepseq(1, 4, 3)
308297
instance NFData1 NKeyName where
309298
liftRnf _ (StaticKey !_ ) = ()
310299
liftRnf _ (DynamicKey (Plain !_) ) = ()
311300
liftRnf _ (DynamicKey EscapedNewline) = ()
312301
liftRnf k (DynamicKey (Antiquoted r)) = k r
313-
#endif
314302

315303
-- | Most key names are just static text, so this instance is convenient.
316304
instance IsString (NKeyName r) where
@@ -410,10 +398,6 @@ paramName :: Params r -> Maybe VarName
410398
paramName (Param n ) = Just n
411399
paramName (ParamSet _ _ n) = n
412400

413-
#if !MIN_VERSION_deepseq(1, 4, 3)
414-
instance NFData NExpr
415-
#endif
416-
417401
$(deriveEq1 ''NExprF)
418402
$(deriveEq1 ''NString)
419403
$(deriveEq1 ''Binding)

src/Nix/Expr/Types/Annotated.hs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ instance Hashable ann => Hashable1 (Ann ann)
8282
instance (Serialise ann, Serialise a) => Serialise (Ann ann a)
8383
#endif
8484

85-
#if MIN_VERSION_deepseq(1, 4, 3)
8685
instance NFData ann => NFData1 (Ann ann)
87-
#endif
8886

8987
$(deriveEq1 ''Ann)
9088
$(deriveEq2 ''Ann)
@@ -110,10 +108,6 @@ type NExprLocF = AnnF SrcSpan NExprF
110108
-- | A nix expression with source location at each subexpression.
111109
type NExprLoc = Fix NExprLocF
112110

113-
#if !MIN_VERSION_deepseq(1, 4, 3)
114-
instance (NFData (f (g a)), NFData (g a)) => NFData (Compose f g a)
115-
#endif
116-
117111
instance NFData NExprLoc
118112

119113
#ifdef MIN_VERSION_serialise

0 commit comments

Comments
 (0)