flat-0.6: Principled and efficient bit-oriented binary serialization.
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

flatBits :: Flat a => a -> String Source #

allBits :: Flat a => a -> String Source #

encBits :: NumBits -> Encoding -> Bits Source #

Since: 0.5

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

Pretty print a value with the prettyNormal level.

module Data.Word