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
Additional warnings for 'cabal run' #2510
Conversation
Just exe -> return (True, exe, xs) | ||
where | ||
enabledExes = filter (buildable . buildInfo) (executables pkg_descr) | ||
printMaybeWarningWithAdditional :: String -> IO () |
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 think it's simpler to just make this Maybe String
and then use e.g. notice $ concat (maybeToList mbWarn ++ [myWarn])
.
|
I guess the name tripped me up, perhaps a better one would be |
style question: |
(or was there a reason you preferred |
Whichever you prefer. Shouldn't it be
Nope, no problem with |
.. yes, should be (and i thought i had -Wall configured..) |
++ " the default executable." | ||
-- if there is a warning, print it together | ||
-- with the addition. | ||
notice normal `traverse_` fmap (++addition) |
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.
BTW, there's a warn
function for printing warnings.
Additional warnings for 'cabal run'
Merged, thanks! |
see #2507
just additional warnings; did not implement anything in the direction of
run
ning test-suites or benchmarks (even thought that might be nice).