File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -531,7 +531,11 @@ instance NFData1 Fixed where liftRnf _ = rwhnf
531
531
-- This assumes that WHNF is equivalent to NF for functions.
532
532
--
533
533
-- @since 1.3.0.0
534
+ #if MIN_VERSION_base(4,20,0)
535
+ instance {-# DEPRECATED "NFData is not well-defined on function types." #-} NFData (a -> b ) where rnf = rwhnf
536
+ #else
534
537
instance NFData (a -> b ) where rnf = rwhnf
538
+ #endif
535
539
536
540
-- Rational and complex numbers.
537
541
Original file line number Diff line number Diff line change 2
2
3
3
## Upcoming
4
4
5
-
5
+ * Deprecate function instance starting in GHC 9.10 (` base-4.20 ` )
6
+ ([ #16 ] ( https://github.com/haskell/deepseq/issues/16 ) , [ #47 ] ( https://github.com/haskell/deepseq/pull/47 ) )
6
7
7
8
## 1.5.1.0
8
9
You can’t perform that action at this time.
0 commit comments