We should have types/objects in Python that we can use to serialize into dhall unions. Optionally, we can have a flag that lets dhall deserialize into such types.
i.e. desired ux should be something like:
>>> import dhall
>>> dhall.dumps([dhall.Some(5), None])
'[Some 5, None Natural]'
We should have types/objects in Python that we can use to serialize into dhall unions. Optionally, we can have a flag that lets dhall deserialize into such types.
i.e. desired ux should be something like: