Skip to content

Option removed from Data.Semigroup#1

Open
vyuuui wants to merge 1 commit intotrskop:masterfrom
vyuuui:update-ghc-921
Open

Option removed from Data.Semigroup#1
vyuuui wants to merge 1 commit intotrskop:masterfrom
vyuuui:update-ghc-921

Conversation

@vyuuui
Copy link
Copy Markdown

@vyuuui vyuuui commented Jun 25, 2023

Per the documentation from the base package itself

In GHC 8.4 and higher, the 'Monoid' instance for 'Maybe' has been corrected to lift a 'Semigroup' instance instead of a 'Monoid' instance. Consequently, this type is no longer useful. It will be marked deprecated in GHC 8.8 and removed in GHC 8.10.

As it stands now, the Maybe type has a Semigroup instance. Option would serve no purpose here for anyone on at least base>=4.11.0.0. Perhaps the .cabal needs to be updated as well to account for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant