Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype ByteEnum e = ByteEnum {
- unwrapByteEnum :: e
Documentation
Wraps an Enum
to be described as a Word8. Intended to be used with DerivingVia so as to not introduce unnecessary newtype wrappers:
data MyEnum = A | B | C
deriving Enum
deriving Describe via ByteEnum MyEnum
ByteEnum | |
|