Re:Tagged unions, or ‘variants’, in C
by tome on Monday June 26, 2017 @06:22AM
(#14635592)
The tagged union/variant idea does not correspond to a Haskell type class. In fact it doesn't really even have a name in Haskell it's just the "sum type" aspect of a "algebraic data types" (which constitutes sums, products and functions, basically).
[ Parent
| on HN ]
I see.
I thought that type classes are sum types also.