4 ms·
The deriving (and related generics) functionality is quite a bit cleaner and more appropriate to the problem than macros.
by coolsunglasses 10y ago
The deriving (and related generics) functionality is quite a bit cleaner and more appropriate to the problem than macros.
- marcosdumay 10y agoExcept when you want to derive something that isn't supported by the compiler, and isn't creating a newtype.
- coolsunglasses 10y agoSo you haven't used Haskell? I can use `Generic` or TH to derive anything for anything I want. In the case of the latter, it doesn't even have to be a typeclass instance.