Copyright | (c) Daniel Lovasko 2016-2017 |
---|---|
License | BSD3 |
Maintainer | Daniel Lovasko <daniel.lovasko@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
The Frame typeclass unites the interface to both TimeFrame and ValueFrame types. Intended for internal use only.
- class Frame r c where
- frameDecode :: Frame r c => c -> [r]
- frameEncode :: Frame r c => [r] -> c
- frameHead :: Frame r c => c -> Maybe r
Documentation
class Frame r c where Source #
Abstract compression frame that binds two types together. The type variable "r" stands for Raw, variable "c" for Compressed.
frameDecode :: c -> [r] Source #
Decompress a frame into raw elements.
frameEncode :: [r] -> c Source #
Compress raw elements into a frame.
frameHead :: c -> Maybe r Source #
First raw element of a frame.
frameDecode :: Frame r c => c -> [r] Source #
Decompress a frame into raw elements.
frameEncode :: Frame r c => [r] -> c Source #
Compress raw elements into a frame.