Skip to content

deriveEsqueletoRecord does not handle polymorphic records #383

@parsonsmatt

Description

@parsonsmatt

Consider the type:

data Record key = Record { key :: key, column :: Int }

We can't write deriveEsqueletoRecord here because there's a type error. We can't provide concrete things because deriveEsqueletoRecord takes a Name and not a Type, so we can't write deriveEsqueletoRecord @(Record Foo).

Ideally we can support polymorphic records.

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