Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

structuralShowsPrec with type patterns #130

Open
RyanGlScott opened this issue Feb 7, 2022 · 0 comments
Open

structuralShowsPrec with type patterns #130

RyanGlScott opened this issue Feb 7, 2022 · 0 comments

Comments

@RyanGlScott
Copy link
Contributor

Most of the functions in Data.Parameterized.TH.GADT (e.g., structuralTypeEquality) take an [(TypePat, ExpQ)] argument to allow customizing the behavior of the TH-generated code in certain cases. There is one exception to this rule, however: structuralShowsPrec¹. This is a shame, because there are definitely situations where being able to have custom Show behavior in certain cases would be handy.

I propose we add this capability. If we don't want to break the existing structuralShowsPrec API, we could always add a variant of structuralShowsPrec that allows this.


¹Unless you count the deprecated structuralHash function.

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

No branches or pull requests

1 participant