Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Semigroup instances, in preparation for base 4.11 #33

Merged
merged 1 commit into from
Sep 22, 2017

Conversation

ElvishJerricco
Copy link

Base 4.11 will have Semigroup as a superclass of Monoid

ghc/ghc@8ae263c

Copy link
Member

@hvr hvr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this patch isn't -Wcompat clean. What I had planned for test-framework is to follow the recommended variant at

https://prime.haskell.org/wiki/Libraries/Proposals/SemigroupMonoid#Writingcompatiblecode

IOW, doing it w/o any CPP.

You can use this here as a starting point: https://github.com/hvr/head.hackage/blob/master/patches/test-framework-0.8.1.1.patch

Base 4.11 will have Semigroup as a superclass of Monoid

ghc/ghc@8ae263c
@ElvishJerricco
Copy link
Author

@hvr How's that?

@hvr hvr merged commit 453c814 into haskell:master Sep 22, 2017
@hvr
Copy link
Member

hvr commented Sep 22, 2017

Thanks!

@hvr hvr added the pvp:minor label Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants