|Version 2 (modified by 11 years ago) (diff),|
Generalised deriving for newtype
deriving clause on a
newtype can list any class. For any class except
Data, the instance is "the same" as for the wrapped type.
- saves on repetitious boilerplate, significantly lowering the cost of
- difficult to specify without saying "the same representation"