Skip to content

Expose GToJSON #700

@LukaHorvat

Description

@LukaHorvat

Currently, only GFromJSON is exposed. GToJSON is only exposed via the two type synonyms which means that I can't write custom instances for that class. My use case is that I have a type (data Unset = Unset) that I want to use for some fields in a record and I want those fields to be dropped from the JSON representation of that record. If GToJSON was exposed, I could just duplicate the trick used for Maybe.

Since GFromJSON is already exposed, this already has a precedent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions