Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
binary
Commits
890fcc60
Commit
890fcc60
authored
Feb 05, 2021
by
Simon Jakobi
Browse files
Remove instance for Data.Semigroup.Option for GHC >= 9.2
Corresponding GHC MR:
ghc/ghc!4945
parent
f797e935
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Data/Binary/Class.hs
View file @
890fcc60
...
...
@@ -816,10 +816,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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment