• Dhall
      • Libraries
        • Haskell
          • Dev/
            • Tech

Dhall for simple application configuration

Dhall can be used as a simple configuration file for your Haskell applications. Dhall’s support for default values is key to implement this (see Optional record fields in Dhall#).

Example

  • Haskell code
  • Dhall type
  • Dhall default values
2020-05-07

Backlinks

  • Pure parsing of Dhall file without IO
    • Dhall’s input function requires IO so as to be able to resolve imports. However, it is not uncommon when using Dhall for simple application configuration to not want to support imports in application configuration1.

      1. It is especially important, for security reasons, to prevent IO when parsing user-submitted Dhall text in the backend.

        ↩︎
  • Sridhar Ratnakumar 🤨
    • Parent directory zettel

Uplinks

  • Dhall#
    dhall
    logo