-
Notifications
You must be signed in to change notification settings - Fork 105
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
Default to passing --warn to Elm #32
Conversation
Following the change to node-elm-compiler.
Closed as per my comment #31 (comment) |
@@ -8,7 +8,8 @@ var cachedDependencies = []; | |||
|
|||
var defaultOptions = { | |||
cache: false, | |||
yes: true | |||
yes: true, | |||
warn: true |
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.
Can we default this to false instead?
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.
As you wish. I don’t know what people prefer, but I haven’t seen any unhelpful warnings from Elm so far. My personal preference is to see the warnings, in order to copy top-level type declarations into my source code.
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.
I actually dig this idea. It's easy to turn off if you don't like them, and culturally it seems nice to encourage people to clean things up.
@eeue56 any objection to trying it this way and changing it if it's annoying in practice?
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.
As @eeue56 pointed out to me, elm-lang/elm-make#27 means turning on warn
by default won't give you all the warnings every time, only when files change and recompile...that seems like it would be surprising behavior, so I'd say let's revisit this default if the status elm-lang/elm-make#27 changes.
I think we'll handle this in #33 since it comes with the node upgrade too. Thanks all the same! |
Fixes #31.