-
Notifications
You must be signed in to change notification settings - Fork 27
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
Dispose of Unnecessary OVERLAPPING Pragmas and Deprecated OverlappingInstances Extension #16
base: master
Are you sure you want to change the base?
Conversation
…Instances extension
Hey, thanks for the PR. The tests pass for me locally but seem to be broken on Travis. Not sure why, I've been doing some work on I'm of two minds about this--I like how this avoids the need for |
The main thing is getting rid of |
@hasufell well as the comment in the file mentions, |
@thomasjm , I am very sorry for having kept you waiting. No, the pragmas were not causing me any problems. I opened the pull request just to demonstrate to me and a colleague that in some situations it is possible to avoid overlapping instances completely and to discuss the options. I, myself, think that the option this pull request puts forward composes poorly because it requires changing the class in order to define instances which a library user could not do. On the other hand, overlapping instances entails a few dangers. One example is the incoherent behavior described in the warning section at the bottom of https://downloads.haskell.org/ghc/latest/docs/html/users_guide/glasgow_exts.html#instance-overlap . But as far as I can see, users of your library could never trigger and observe this one. But I have not looked very closely. |
Thanks @prednaz ! From what I can tell, the warning you reference applies only to
I'm leaning toward 1) or 2) but I'll revisit this after the other PR + a little research on what newer GHC adoption looks like. |
It applies to the pragmas too. Almost all dangers of I personally do not think, using a deprecated feature is worse than losing the support of older GHC versions. But that is clearly your decision. |
By the way, is it my setup or are the tests broken?