-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
Remove Proxy's #390
Comments
Please no. |
I agree with @phadej. They might ultimately get removed if visible type application is stable and around for a few releases, but right now is far too early to do so. What might be possible is to additionally offer proxy-less variants of the functions that currently need proxies for GHC >= 8. |
proxy-less variants would be good start, in best case we can "hide" proxies from user facing api, and verify that I might be interested myself to experiment with that, after 0.5 is out. EDIT I'm afraid that we just trade |
If |
@pavelkogan interesting idea |
What do we all think about |
Can someone explain the exact advantages of |
Prelude GHC.Prim> :k Proxy#
Proxy# :: k -> TYPE 'GHC.Types.VoidRep
|
@jkarni frankly, i don't really see the point in this change. What have you had in mind? |
I'm ok with it. It's more or less a standard technique, and grants users extra flexibility. The only disadvantage I see is that to people unfamiliar with proxies, it is ever so slightly more difficult to explain. |
@kosmikus Can you elaborate on flexibility a bit? Afaik this would only be useful if we can use more polymorphic proxy, but it's already kind-polymorphic in base. Am i missing some compatibility nuances or something else? |
I'm a bit worried that |
@dredozubov The flexibility is that you can use any type constructor you like as a proxy, so if you are e.g. in a context where you have a |
@kosmikus: When I ran into that situation, I wrote |
@soenkehahn Yes, I agree that everything is of course equally expressive, and the tradeoffs are rather minor. |
I guess no one feels strongly either way here, so closing. EDIT - I meant feels strongly about |
Will the
Proxy
arguments be removed given visible type application in GHC 8The text was updated successfully, but these errors were encountered: