Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.Serialize.Describe.Combinators.ByteEnum
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
Constructors
ByteEnum | |
Fields
|