Safe Haskell | None |
---|---|
Language | Haskell98 |
A type-class to provide coding operations to different data types using the same function names.
- class Coding a where
- encodeMessage :: Coding c => Message -> c
- encodeBundle :: Coding c => Bundle -> c
- decodeMessage :: Coding c => c -> Maybe Message
- decodeBundle :: Coding c => c -> Bundle
Documentation
Converting from and to binary packet representations.
encodePacket :: Packet -> a Source #
decodePacket :: a -> Packet Source #
encodeMessage :: Coding c => Message -> c Source #
encodeBundle :: Coding c => Bundle -> c Source #
decodeBundle :: Coding c => c -> Bundle Source #