Playing with dhall
for the first time I saw that it supports these two options:
./dhall --help
...
lint Improve Dhall code
format Formatter for the Dhall language
What's the difference between the two? From running them on my sample project it appears they to the same thing. I'd have expected the linter to go further than formatting in some ways (e.g. recommending "idiomatic" dhall) but couldn't find any info on it.
The improvements dhall lint
does (at the time of this writing) are listed here and currently consist of:
let
bindingslet
bindings to use a multiple-let
bindingList
-like Optional
literals to use Some
/ None
insteadconstructors
keywordGenerally, you should expect the dhall lint
improvements to fall into one of two categories:
Non-controversial improvements to the code
... such as the first improvement to remove unused let
bindings
Automatic code migrations to help users stay current with newer language features
... such as the last three improvements
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With