Skip to content

Allow deriving for records where all the fields have a Display instance #51

Closed

Description

@JonathanLorimer

It would be nice if you could deriving display instances for records where all the fields have a Display instance

Activity

  1. Kleidukos commented on May 15, 2023

    @Kleidukos
    Collaborator

    Indeed.

  2. added
    enhancement
    help wanted
    good first issue
    on May 15, 2023
  3. JonathanLorimer commented on May 15, 2023

    @JonathanLorimer
    ContributorAuthor

    @Kleidukos if you have any advice on how to do this, I would be happy to take a run at it. I figure you can probably do it with a deriving via generic (or something to that effect)

  4. Kleidukos commented on May 16, 2023

    @Kleidukos
    Collaborator

    @JonathanLorimer Yes this would be something along the lines of https://github.com/tchoutri/pg-entity/blob/main/src/Database/PostgreSQL/Entity/Types.hs#L87-L173 but it's a pain to understand if you've never done it before. Would you like to pair with me on this? :)

  5. JonathanLorimer commented on May 16, 2023

    @JonathanLorimer
    ContributorAuthor

    @Kleidukos I have a solution almost done, will put up a draft PR for your initial review

  6. Kleidukos commented on May 16, 2023

    @Kleidukos
    Collaborator

    Wonderful!

  7. Kleidukos commented on May 16, 2023

    @Kleidukos
    Collaborator

    fixed by #52 thanks again @JonathanLorimer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions