kangaroo-0.3.0: Binary parsing with random access.

Portabilityto be determined.
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Text.PrettyPrint.JoinPrint

Description

Printing with join-strings.

Synopsis

Documentation

data Doc Source

Instances

length :: Doc -> IntSource

length on a Doc is O(1).

padl :: Int -> Char -> Doc -> DocSource

padr :: Int -> Char -> Doc -> DocSource

render :: Doc -> StringSource

Rendering is simple because there is no notion of fitting.

hex :: Integral a => a -> DocSource

hex : i -> Doc

Print i as hexadecimal, no zero padding.

Negative numbers are printed as a string of asterisks.

oxhex :: Integral a => Int -> a -> DocSource

oxhex : pad-length * i -> Doc

Print i in hexadecimal, padding with '0' to the supplied pad-length and prefixing with "0x".

Negative numbers are printed as a string of asterisks.

hexdump :: Int -> Int -> [Word8] -> DocSource