From b136de61ba6becfe8c34c617b36f6619c541f266 Mon Sep 17 00:00:00 2001 From: Simon Jakobi Date: Wed, 14 Apr 2021 19:31:48 +0200 Subject: [PATCH] Remove instances for Data.Semigroup.Option for GHC >= 9.2 (#62) Corresponding MR for GHC: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4945 --- Control/DeepSeq.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Control/DeepSeq.hs b/Control/DeepSeq.hs index a88735f..3cce3eb 100644 --- a/Control/DeepSeq.hs +++ b/Control/DeepSeq.hs @@ -16,7 +16,7 @@ {-# LANGUAGE EmptyCase #-} #endif -#if __GLASGOW_HASKELL__ >= 811 +#if __GLASGOW_HASKELL__ >= 811 && __GLASGOW_HASKELL__ < 901 -- For the Option instance (https://gitlab.haskell.org/ghc/ghc/issues/15028) {-# OPTIONS_GHC -Wno-deprecations #-} #endif @@ -908,12 +908,14 @@ instance NFData m => NFData (WrappedMonoid m) where rnf = rnf1 instance NFData1 WrappedMonoid where liftRnf r (WrapMonoid a) = r a +#if __GLASGOW_HASKELL__ < 901 -- |@since 1.4.2.0 instance NFData a => NFData (Option a) where rnf = rnf1 -- |@since 1.4.3.0 instance NFData1 Option where liftRnf r (Option a) = liftRnf r a #endif +#endif ---------------------------------------------------------------------------- -- GHC.Stack