flat-0.4.4.0.0.0.0.2: Principled and efficient bit-oriented binary serialization.
Safe Haskell None
Language Haskell2010

Flat.Instances.Test

Description

doctest utilities

Synopsis

Documentation

tst :: ( Eq a, Flat a) => a -> ( Bool , NumBits , [ Word8 ]) Source #

Returns: result of flat/unflat test, encoding size in bits, byte encoding

tstBits :: ( Eq a, Flat a) => a -> ( Bool , NumBits , String ) Source #

Returns: result of flat/unflat test, encoding size in bits, bits encoding

asList :: ( Eq a1, Eq a2, Flat a1, Flat a2) => (a2 -> a1) -> a2 -> Bool Source #

Test that container is serialised as a List

prettyShow :: Pretty a => a -> String Source #

Pretty print a value with the prettyNormal level.