DHALL(1)

πŸ“¦
version 1.42.3 Β· 2 versions
, in fedora 43, fedora 44

πŸ’– DHALL πŸ’–

okay so bestie, welcome to the dhall manual page, section 1 β€” the command-line interface to the Dhall language, which is, and I cannot stress this enough, a programmable configuration language. yes. a config language that is also a whole programming language. she contains multitudes πŸ’…


✨ NAME ✨

dhall β€” a programmable configuration language πŸ¦‹


🌸 DESCRIPTION 🌸

dhall is the command-line interface to the Dhall language. that's it, that's the vibe β€” everything you can do with Dhall from a terminal goes through this one binary. main character energy, honestly. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

dhall --file check.dhall

dhall --file error.dhall --explain

dhall hash --file to-hash.dhall

dhall freeze --file with-imports.dhall

dhall repl

dhall diff './file1.dhall’ './file2.dhall’

dhall type --quiet --file check-ci.dhall

look at her go 😭 every one of those is a real thing you can literally type right now. no cap.


🧚 SUBCOMMANDS 🧚

  • version β€” Display version information
  • resolve β€” Resolve imports
  • type β€” Infer type of expression
  • normalize β€” Normalize an expression
  • repl β€” Open a REPL
  • diff β€” Show difference between two expressions
  • hash β€” Compute hash of expression
  • lint β€” Lint an expression, removing dead code
  • tags β€” Generate etags (Emacs) file
  • format β€” Format an expression
  • freeze β€” Add hashes to import statements
  • encode β€” Encode a Dhall expression (CBOR)
  • decode β€” Decode a Dhall expression
  • text β€” Render a Dhall expression to text
  • to-directory-tree β€” Convert nested record of Text into a directory

fifteen subcommands and not a single flop among them πŸ’– to-directory-tree is lowkey the sleeper hit, turning a nested record of Text into an actual directory on disk. iconic behaviour.


πŸ’… OPTIONS πŸ’…

  • -h, --help β€” Display help
  • --file β€” Name of file containing Dhall source
  • --output β€” Output file
  • --annotate β€” Add type annotation to output
  • --alpha β€” alpha-normalize output
  • --no-cache β€” Don't use cache to resolve imports
  • --explain β€” Explain error messages in detail
  • --version β€” Display version information
  • --plain β€” Disable syntax highlighting in output
  • --ascii β€” Format code using only ASCII syntax
  • --censor β€” Hide source code from error messages
bestie listen β€” if you're about to pipe dhall output somewhere, <yellow>--plain</yellow> is your bestie. no syntax highlighting, just clean text. and <yellow>--censor</yellow> will hide your source code from error messages, which, if you're pasting errors into a public issue... yeah. do that. 🫢

🌈 EDITOR INTEGRATION 🌈

Up-to-date information on editor integration is available at:

https://docs.dhall-lang.org/howtos/Text-Editor-Configuration.html

go make your editor slay, bestie, the docs are right there ✨


πŸ’€ BUGS πŸ’€

Please report any bugs you may come across to https://github.com/dhall-lang/dhall-haskell/issues.

like, actually report them though. don't just suffer in silence. the maintainers want to know πŸ™ˆ


and that's the whole page!! we made it. the footer just says dhall (1)() again with no version and no date on it, so consider this your cute little sign-off instead: go forth and configure things programmatically, bestie πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from