data-default icon indicating copy to clipboard operation
data-default copied to clipboard

Add GDefault instance for (a :+: b)

Open poscat0x04 opened this issue 5 years ago • 0 comments

The usefulness of the Default class came from its ability to generically derive Default instances. I would argue that adding a GDefault instance for sum types (which selects the first constructor) would further boost its usefulness. Plus we lose nothing from adding this since right now we need to manually write Default instances for sum types anyways.

poscat0x04 avatar Mar 21 '20 08:03 poscat0x04