Skip to content

Derive Rel8able using TemplateHaskell - #376

Open
TeofilC wants to merge 1 commit into
masterfrom
teo/template-haskell
Open

Derive Rel8able using TemplateHaskell#376
TeofilC wants to merge 1 commit into
masterfrom
teo/template-haskell

Conversation

@TeofilC

@TeofilC TeofilC commented May 23, 2025

Copy link
Copy Markdown
Contributor

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.

@TeofilC
TeofilC marked this pull request as draft May 23, 2025 16:53
@TeofilC TeofilC changed the title Derive Rel8 using TemplateHaskell Derive Rel8able using TemplateHaskell May 23, 2025
@TeofilC
TeofilC force-pushed the teo/template-haskell branch from 970a7cf to aaf87ad Compare May 23, 2025 17:05
@TeofilC
TeofilC force-pushed the teo/template-haskell branch 3 times, most recently from ff2b1f1 to 11e1f30 Compare October 28, 2025 15:54
@TeofilC
TeofilC force-pushed the teo/template-haskell branch 3 times, most recently from 4bcd2ac to 37242b7 Compare March 6, 2026 14:34
@TeofilC
TeofilC force-pushed the teo/template-haskell branch 2 times, most recently from 629a9d9 to 1aa6e1f Compare May 5, 2026 16:17
@TeofilC
TeofilC force-pushed the teo/template-haskell branch 5 times, most recently from 607cc01 to 2a4b9fa Compare June 26, 2026 20:01
@TeofilC
TeofilC force-pushed the teo/template-haskell branch from 2a4b9fa to c097469 Compare July 17, 2026 16:44
@TeofilC
TeofilC force-pushed the teo/template-haskell branch from c097469 to 9e84e34 Compare August 7, 2026 13:26
@TeofilC
TeofilC marked this pull request as ready for review August 25, 2026 13:32
@TeofilC
TeofilC force-pushed the teo/template-haskell branch 3 times, most recently from 456f795 to d537d14 Compare August 25, 2026 15:17
@TeofilC
TeofilC requested a review from ocharles August 25, 2026 15:18
@TeofilC
TeofilC force-pushed the teo/template-haskell branch 2 times, most recently from 1ef46d2 to 94432b6 Compare August 25, 2026 16:03
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
TeofilC force-pushed the teo/template-haskell branch from 94432b6 to 67498d9 Compare August 25, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant