Cutting Boilerplate with GHC's DerivingVia: Composable Typeclass Instances Without Newtype Wrappers
GHC's DerivingVia extension lets you attach typeclass instances by delegating to existing instances — no newtype wrappers, zero runtime cost. A practical walkthrough with Age/Sum Int, chaining strategies, and Core verification.