Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.
makeHaskellTypeFromUnion is awesome.
makeHaskellTypeFromUnion
I only need to write a Types.dhall and use TH to automatically define a Haskell type based on it. One line:
Types.dhall
makeHaskellTypeFromUnion "Config" "< Config : ./config/Type.dhall >"
This feature alone beats using some other config parser (like TOML).
I'm happy with it: https://github.com/srid/zulip-archive/commit/16be91e893d5ac67925199ce9bd2c9afc59ad3dd
This got improved in dhall. We now have makeHaskellTypes that is less restrictive: https://github.com/dhall-lang/dhall-haskell/pull/1664
makeHaskellTypes
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:This feature alone beats using some other config parser (like TOML).
I'm happy with it: https://github.com/srid/zulip-archive/commit/16be91e893d5ac67925199ce9bd2c9afc59ad3dd
This got improved in dhall. We now have
makeHaskellTypes
that is less restrictive: https://github.com/dhall-lang/dhall-haskell/pull/1664