Skip to content

Commit 638aabf

Browse files
committed
Remove instance for Data.Semigroup.Option for GHC >= 9.2
Corresponding GHC MR: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4945
1 parent f9b1c92 commit 638aabf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Data/Binary/Class.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,10 +812,12 @@ instance Binary a => Binary (Semigroup.Last a) where
812812
get = fmap Semigroup.Last get
813813
put = put . Semigroup.getLast
814814

815+
#if __GLASGOW_HASKELL__ < 901
815816
-- | @since 0.8.4.0
816817
instance Binary a => Binary (Semigroup.Option a) where
817818
get = fmap Semigroup.Option get
818819
put = put . Semigroup.getOption
820+
#endif
819821

820822
-- | @since 0.8.4.0
821823
instance Binary m => Binary (Semigroup.WrappedMonoid m) where

0 commit comments

Comments
 (0)