Nothing Special   »   [go: up one dir, main page]

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

Adapt to SemigroupMonoid proposal #2036

Merged
merged 3 commits into from
Jun 13, 2016

Conversation

Blaisorblade
Copy link
Contributor

First part of #2009.
See https://prime.haskell.org/wiki/Libraries/Proposals/SemigroupMonoid.
Already tested on GHC-7.8.4, 7.10.3, 8.0.1 locally; let's see if Travis agrees.

-- but using that now gives warnings and doesn't silence -Wsemigroup
#if __GLASGOW_HASKELL__ >= 800
{-# OPTIONS_GHC -Wno-semigroup #-}
#endif
Copy link
Member

Choose a reason for hiding this comment

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

See the related issue haskell/pretty#30.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the link! That means, hopefully, that before 8.2 this might be solved.
Or do you suggest an alternative solution here (though as a separate commit, I guess)?

In that direction, I now wonder whether this file could overload (<>) by defining a Semigroup instance, but it would have the wrong fixity.

However, this (<>) seems to also have an imperfect fixity, it seems to take the default infixl 9 (had to check https://www.haskell.org/onlinereport/decls.html) instead of pretty's infixl 6.

Copy link
Member

Choose a reason for hiding this comment

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

Or do you suggest an alternative solution here (though as a separate commit, I guess)?

No.

@Blaisorblade Blaisorblade merged commit 27fb5c3 into agda:stable-2.5 Jun 13, 2016
@Blaisorblade Blaisorblade deleted the topic/w-semigroup branch June 13, 2016 22:28
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.

2 participants