Skip to content

Tagging untagged union to a Variant #5

@paluh

Description

@paluh

Explore idea of concrete helpers to do lifting of untagged union values into a Variant. I mean through directly passed decoders. Not sure if this makes any sens - it is first dump:

foreign import data :: Row Type -> Untagged

foreign import data tag :: Untagged r -> { | typeGuards? } -> Variant r

By typeGuards I mean row of functions like these: https://www.typescriptlang.org/docs/handbook/advanced-types.html#user-defined-type-guards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions