RFC: deriving
for single field structure
s
#6319
Labels
P-medium
We may work on this issue if we find the time
RFC accepted
RFC is waiting for a corresponding PR (external or internal)
RFC
Request for comments
Proposal
Currently the following program from our time library works and correctly derives all the instances:
However if we wanted to refactor this to a single field
structure
to make writing instances such asDecidable
forLT
easier:The following deriving handlers:
all fail with:
Based on some preliminary reading of the
deriving
framework it seems to me that we have an automated deriving mechanism for all classes for justdef
but this just gives up on single fieldstructure
s right away. I propose that we improve this mechanism to allow such automated deriving for all single fieldstructure
's as well.Impact
Add 👍 to issues you consider important. If others benefit from the changes in this proposal being added, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: