-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
mtl-2.3 compatibility #779
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. I have some requests, beyond the inline comments:
- Please add
mtl >=2.2 && <2.4
to the bounds onamazonka-core.cabal
. - Please add an entry to
lib/amazonka/CHANGELOG.md
, which represents the project as a whole.
As for testing, the best thing I can think of is to build some packages (or maybe some of the example programs) with --constraint 'mtl >=2.3'
and see if it looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have another request. How goes your plans to test this?
Testing is going well, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am happy with this. Ping me when you're satisfied with your testing and I will merge. Thanks very much.
@ysangkok is there anything else you want to test before I merge? |
@endgame I was hoping that somebody would get the chance to test in a 'staging' first. Sadly at my work we don't have that infrastructure for the project we use Amazonka for, so I would have to test it in production, which is kinda dangerous. I think it looks fairly safe since the worst case seems to be that it passes a Nothing to |
Before this PR, compilation on mtl-2.3 fails with
The instance
Alternative (Either String)
makes little sense to me since I don't know how the instance can manufacture anempty
value for the Alternative instance.So in this PR, I try to avoid this instance.
This is untested, I'd appreciate advice on how best to test this.