
8 Oct
2019
8 Oct
'19
11:49 a.m.
On Tue, 8 Oct 2019, David Feuer wrote:
newtype WrappedEnum a = WrappedEnum a instance Enum a => Storable (WrappedEnum a) where ...
That's almost what I recently defined in a custom package: https://hub.darcs.net/thielema/storable-enum/browse/src/Data/Enum/Storable.h... But I also let the user choose the underlying machine type.