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
Make format and dhall subcommands of dhall executable #452
Conversation
e29265e
to
fbf0891
Compare
Oops, just saw the upstream changes and fixing.. |
fbf0891
to
8b5edac
Compare
src/Dhall/Main.hs
Outdated
@@ -65,6 +68,13 @@ parseOptions = Options <$> parseMode <*> parseExplain <*> parsePlain | |||
<> Options.Applicative.help "Disable syntax highlighting" | |||
) | |||
|
|||
parseInplace = |
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.
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.
👌
@Gabriel439 i also updated Tutorial.hs, let me know if that works for you. @Fingerzam I suppose your PR was actually ready before mine. I somehow missed it. Sorry. I actually took the format subcommand code from you now but I moved hash and format to their own modules.. |
makes inplace switch of format subcommand instead of global one
b2560e4
to
9c1cde8
Compare
As I mentioned in #436 I have decided to merge this pull request. Thanks to both of you, though, for taking the time to do this 🙂 |
I really just moved code around a bit - fixes #436
I just realized that Tutorial.hs also has to be adjusted since it is using
dhall-format
anddhall-hash
. Another thing is with--inplace
now being a global switch. Is that Ok @Gabriel439 or should that rather be moved down to be a switch to theformat
subcommand?