Safe Haskell | Trustworthy |
---|---|
Language | Haskell2010 |
Generics-based generation of Flat instances
- class Flat a where
- getSize :: Flat a => a -> NumBits
- module GHC.Generics
The Flat class
Class of types that can be encoded/decoded
getSize :: Flat a => a -> NumBits Source #
Calculate the size in bits of the serialisation of the value
module GHC.Generics