-
Notifications
You must be signed in to change notification settings - Fork 211
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 --check
flag to dhall {lint,freeze}
#1636
Conversation
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 was briefly confused about the PR title. I think you meant {lint,freeze}
.
I really like that format
, freeze
and lint
have such a uniform API now! :)
I think it's a bit awkward that to check a file, you have to write e.g. dhall freeze --check --inplace x.dhall
– --inplace
doesn't really make sense in this combination. I don't see an easy way to resolve that though.
Yeah, I mean |
--check
flag to dhall {lint,format}
--check
flag to dhall {lint,freeze}
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.
Cheers!
Just a few more wibbles. ;)
Fixes #1629
The main changes here are:
FormatMode
from (conceptually)Either FilePath FilePath
to(Bool, FilePath)
FormatMode
andNotFormatted
to be usable for linting and freezing, too--check
fails (which was previously blank)