-
Notifications
You must be signed in to change notification settings - Fork 34
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 RequireQualifiedAccess from Optic module #59
Comments
Typically you'd use the operators for this instead. |
Can you do In any case, I often prefer functions over custom operators for legibility reasons, and it's nice to have the option. 😊 Particularly since The change is trivial. |
As long as we are throwing personal preferences in, I'm the opposite - I prefer explicit module names, especially when the chance of name collision is high and Lens and Prism would typically be used in the same context. |
Sure, but removing |
@cmeeren - the entire way Aether is written, even down to the type level is designed to be maximally flexible and compatible. In general, qualified access serves as a stopgap measure in the absence of proper HKT support, much like The library (in general) tries to provide some conventions on how to do things; with the operators offering very decent syntax for most tasks. if you'd like to write your own get/set functions, they're incredibly trivial to do in your own prelude. |
Against what, would be my question. I don't see the harm in allowing the module to be opened. It won't impact anyone except those users who deliberately try to do it.
I don't think it's a fair comparison; those modules (and
This issue is only about In any case, though I stand by my position that this would be a convenience, it's a fairly minor one (as you point out), and not something I personally feel is worth further discussion. Feel free to close. 🙂 |
I'd like to
open Optic
so I can just dox |> set foo_ "bar"
instead ofx |> Optic.set foo_ "bar"
, butOptic
is marked withRequireQualifiedAccessAttribute
.This may be relevant for other modules as well; haven't checked.
The text was updated successfully, but these errors were encountered: