Skip to content

Commit

Permalink
Remove instances for Data.Semigroup.Option for GHC >= 9.2 (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjakobi authored Apr 14, 2021
1 parent 436f5ac commit b136de6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Control/DeepSeq.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b136de6

Please sign in to comment.