Safe Haskell | None |
---|---|
Language | Haskell2010 |
ByteEnum
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
Documentation
ByteEnum | |
|
Instances
Generic (ByteEnum e) Source # | |
Wrapped (ByteEnum e) Source # | |
Enum e => Describe (ByteEnum e) Source # | |
Defined in Data.Serialize.Describe.Combinators.ByteEnum type Context m (ByteEnum e) :: Constraint Source # | |
type Context m (ByteEnum e) Source # | |
Defined in Data.Serialize.Describe.Combinators.ByteEnum | |
type Rep (ByteEnum e) Source # | |
Defined in Data.Serialize.Describe.Combinators.ByteEnum | |
type Unwrapped (ByteEnum e) Source # | |
Defined in Data.Serialize.Describe.Combinators.ByteEnum |