-
Notifications
You must be signed in to change notification settings - Fork 3
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
Alternate way to configure consistent alias rule #35
Comments
I completely agree with some type being a better way of configuring this - I had started making plans toward this when #15 didn't work out. Unfortunately I have lost all my notes on that so I need to flesh them out again. One hold up is that I want to decide how to handle module shadowing. -- NeverAlias
import Browser
-- AlwaysAlias "Browser"
import Browser.Extra as Browser I do not think that |
At work we've been using a very similar to this though it does allow for a |
Currently the consistent alias rule takes a list of module names and the alias they should each use. What if instead the rule took a function with the type signature
ModuleName -> Alias
where Alias isEdit: To elaborate on why this is useful, in the code we have at work, we have a lot of modules and I'd like to be able to do something like, all elm-ui modules shouldn't be aliased. Or all modules under Shared.* should use the last part of their module name as an alias.
The text was updated successfully, but these errors were encountered: