I noticed that makeHaskellTypeFromUnion fails for the following type defined in Stuff.dhall:
{ title : Text
, value : < Foo : Text | Bar : Text >
}
makeHaskellTypeFromUnion "Stuff" "< Stuff : ./Stuff.dhall >"
The error message is “Unsupported simple type”, which is described further in the source indicating that the sum type here (used in value) is not supported by the TH code.
Is there any way to get this to be working, though? Or would it require a PR to support non-simple types in makeHaskellTypeFromUnion?