-
Notifications
You must be signed in to change notification settings - Fork 13
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
Updates traversable
to test the correct laws
#61
Updates traversable
to test the correct laws
#61
Conversation
740a7ed
to
91f57c3
Compare
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 your PR! :)
I think it follows from Identity and Composition so we are okay without it.
Do you know a proof?
I'm fine with scrapping support for GHC 7.10 BTW, so you can use TypeApplications
.
BTW, it would be nice to have tests for the |
hmm, i actually haven't been able to find a proof, but this link claims it is guaranteed to hold: |
dcfdc1f
to
dedd995
Compare
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!
One more nit…
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! :)
Since this is a breaking change, I'll merge this after cutting the v0.5.7 release (#64).
Great! |
Regarding naturality, note this change: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/7492 |
Well there you go. Should we hold off on merging this until a working implementation is produced? |
When do you expect it to land? IMHO the existing changes are good additions which shouldn't be held back for very long. |
To be honest, I'm a little stumped on this how to fix it. Is there anyone with more quickcheck experience who we can ask? The issue is the rank2 type. |
Published in v0.6.0: https://hackage.haskell.org/package/checkers-0.6.0 |
Resolves issue #24
I wasn't able to implement the Naturality test correctly, but I left it in as a comment in case someone else can get it working. I think it follows from Identity and Composition so we are okay without it.