Zero‑Cost Domain Semantics with DerivingVia and Newtype Wrappers
Give primitives semantic meaning with zero‑cost wrappers using Haskell’s DerivingVia. Learn the pattern, mechanics, a worked example, trade‑offs, and how to adopt it safely in your codebase.