Dhall is a typed, programmable configuration language that is not Turing-complete and can emit JSON or YAML.
Overview
Dhall is a configuration language aimed at maintainability. It combines JSON-like data with functions, types, and imports. Evaluation always terminates because the language is intentionally not Turing-complete.
Day-to-day use often starts with command-line tools such as dhall-to-json and dhall-to-yaml to generate JSON or YAML from Dhall sources. Multiple language implementations let the same configuration files work across ecosystems, while this project holds shared grammar, semantics, tests, and the Prelude package of utilities.
Design goals emphasize clear errors, simplicity, beginner-friendly syntax, robust evaluation, and a single obvious way to express each idea. Configurations can be reduced to a normal form without abstraction, which limits unreadable indirection. A live browser playground on the official site lets you try expressions interactively.
The standard evolves with documented versioning. Bindings in several programming languages follow the shared specification so portability is explicit rather than assumed.
Key features
- Typed configuration expressions
- JSON and YAML export
- Importable configuration modules
- Shared Prelude utility package
- Formal language specification
- Non-Turing-complete evaluation
- Normal form reduction
- Multi-language binding support
Use cases
- Maintainable app configuration
- Generating JSON or YAML from logic
- Shared config across languages
- Kubernetes and ops config
- Replacing duplicated config files