Skip to content

Codec for homogeneous record #64

@wclr

Description

@wclr

This question is not directly related to this library, but PS row-type "magic" capabilities.

Is it possible to code a codec maker for homogeneous record smth like below?

homoRecCodec :: ∀ @r a. Homogeneous r a => JsonCodec a -> JsonCodec (Record r)

Considering all the records' fields use the same codec, so there would be no need to code this record of codecs manually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions