From 638aabfff0c53f0a38f20bb8ccbf909121dc6820 Mon Sep 17 00:00:00 2001 From: Simon Jakobi Date: Fri, 5 Feb 2021 05:21:56 +0100 Subject: [PATCH] Remove instance for Data.Semigroup.Option for GHC >= 9.2 Corresponding GHC MR: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4945 --- src/Data/Binary/Class.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Data/Binary/Class.hs b/src/Data/Binary/Class.hs index a3d3878c..372e6ede 100644 --- a/src/Data/Binary/Class.hs +++ b/src/Data/Binary/Class.hs @@ -812,10 +812,12 @@ instance Binary a => Binary (Semigroup.Last a) where get = fmap Semigroup.Last get put = put . Semigroup.getLast +#if __GLASGOW_HASKELL__ < 901 -- | @since 0.8.4.0 instance Binary a => Binary (Semigroup.Option a) where get = fmap Semigroup.Option get put = put . Semigroup.getOption +#endif -- | @since 0.8.4.0 instance Binary m => Binary (Semigroup.WrappedMonoid m) where