You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 customShow
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 ofstructuralShowsPrec
that allows this.¹Unless you count the deprecated
structuralHash
function.The text was updated successfully, but these errors were encountered: