Automatic Haskell types - Dhall

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sridhar Ratnakumar

makeHaskellTypeFromUnion is awesome.

I only need to write a Types.dhall and use TH to automatically define a Haskell type based on it. One line:

makeHaskellTypeFromUnion "Config" "< Config : ./config/Type.dhall >"

This feature alone beats using some other config parser (like TOML).

I'm happy with it:

Zulip Archive viewer (statically generated HTML). Contribute to srid/zulip-archive development by creating an account on GitHub.
Sridhar Ratnakumar

This got improved in dhall. We now have makeHaskellTypes that is less restrictive:

Inspired by this discussion: This adds a new makeHaskellTypes utility which can generate multiple types whi...