-
Notifications
You must be signed in to change notification settings - Fork 841
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
Add the ddump-dir option/config value #4225 #4242
Conversation
@snoyberg this should be all set now :) |
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.
Looks like a great PR, just one minor comment.
src/Stack/Build/Execute.hs
Outdated
-- copy ddump-* files | ||
let enableDdumpDir = isJust $ boptsDdumpDir eeBuildOpts | ||
ddumpPath = maybe "" T.unpack $ boptsDdumpDir eeBuildOpts | ||
when (buildingFinals && enableDdumpDir && not (null ddumpPath)) $ do |
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.
It looks like a pattern match would be easier to read here, e.g.:
case T.unpack <$> boptsDdumpDir eebuildOpts of
Just ddumpPath | buildingFinals && enableDdumpDir && not (null ddumpPath) -> do ...
_ -> pure ()
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.
That makes sense. That's true :)
LGTM. We can merge once CI passes. |
Thanks! |
Fixes #4225
Note: Documentation fixes for https://docs.haskellstack.org/en/stable/ should target the "stable" branch, not master.
Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!