How can I define a sum type analogous to Haskell's sum types in the Dhall programming language?
For instance, if in Haskell I'd define
data SumProp = Option1 | Option2
My purpose is to define in Dhall a record in which one of its properties has a limited set of possible values:
\(sumPropValue : SumProp) -> { value = sumPropValue }
constructors
keyword that can be used to generate the convenience constructors. – Fibrinolysin