Flat.Instances.Extra
Contents
>>> import Flat.Instances.Test
>>>
import Flat.Instances.Test
For better encoding/decoding performance, it is useful to declare instances of concrete list types, such as [Char].
>>> tstBits "" (True,1,"0")
tstBits ""
>>> tstBits "aaa" (True,28,"10110000 11011000 01101100 0010")
tstBits "aaa"
Methods
encode :: [Char] -> Encoding Source #
decode :: Get [Char] Source #
size :: [Char] -> NumBits -> NumBits Source #