Derive Rel8able using TemplateHaskell - #376
Open
TeofilC wants to merge 1 commit into
Open
Conversation
TeofilC
marked this pull request as draft
May 23, 2025 16:53
TeofilC
force-pushed
the
teo/template-haskell
branch
from
May 23, 2025 17:05
970a7cf to
aaf87ad
Compare
TeofilC
force-pushed
the
teo/template-haskell
branch
3 times, most recently
from
October 28, 2025 15:54
ff2b1f1 to
11e1f30
Compare
TeofilC
force-pushed
the
teo/template-haskell
branch
3 times, most recently
from
March 6, 2026 14:34
4bcd2ac to
37242b7
Compare
TeofilC
force-pushed
the
teo/template-haskell
branch
2 times, most recently
from
May 5, 2026 16:17
629a9d9 to
1aa6e1f
Compare
TeofilC
force-pushed
the
teo/template-haskell
branch
5 times, most recently
from
June 26, 2026 20:01
607cc01 to
2a4b9fa
Compare
TeofilC
force-pushed
the
teo/template-haskell
branch
from
July 17, 2026 16:44
2a4b9fa to
c097469
Compare
TeofilC
force-pushed
the
teo/template-haskell
branch
from
August 7, 2026 13:26
c097469 to
9e84e34
Compare
TeofilC
marked this pull request as ready for review
August 25, 2026 13:32
TeofilC
force-pushed
the
teo/template-haskell
branch
3 times, most recently
from
August 25, 2026 15:17
456f795 to
d537d14
Compare
TeofilC
force-pushed
the
teo/template-haskell
branch
2 times, most recently
from
August 25, 2026 16:03
1ef46d2 to
94432b6
Compare
This is a new alternative deriving mechanism to Generics. Testing shows that it is much more performant, with some tests showing compile time improvements of up to 80%. Currently the implementation is a bit more limited than the Generics version and doesn't support sum types for instance. Co-authored-by: Oliver Charles <ollie@ocharles.org.uk>
TeofilC
force-pushed
the
teo/template-haskell
branch
from
August 25, 2026 16:15
94432b6 to
67498d9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a new alternative deriving mechanism to Generics. Testing shows
that it is much more performant, with some tests showing compile time
improvements of up to 95%.
Currently the implementation is a bit more limited than the Generics
version and doesn't support sum types for instance.
This is based on earlier work in #141, but at this stage it's basically a full rewrite.