Skip to content

Python representation of Optional and Unions #6

@s-zeng

Description

@s-zeng

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]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions