justifiably lazy orphans (alternative subtitle: “I used the TemplateHaskell to destroy the TemplateHaskell”) (EDIT: 2021-11-05 - Having actually tried this approach in production, I now have an experience report and a warning. Scroll to the bottom for the details!)
Deferred Derivation
Deferred Derivation
Deferred Derivation
justifiably lazy orphans (alternative subtitle: “I used the TemplateHaskell to destroy the TemplateHaskell”) (EDIT: 2021-11-05 - Having actually tried this approach in production, I now have an experience report and a warning. Scroll to the bottom for the details!)