-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | This library generates pretty hex dumps of ByteStrings in the style of
--   other common *nix hex dump tools.
@package pretty-hex
@version 1.1

module Hexdump

-- | <a>prettyHex</a> renders a <a>ByteString</a> as a multi-line
--   <a>String</a> complete with addressing, hex digits, and ASCII
--   representation.
--   
--   Sample output
--   
--   <pre>
--   Length: 100 (0x64) bytes
--   0000:   4b c1 ad 8a  5b 47 d7 57  48 64 e7 cc  5e b5 2f 6e   K...[G.WHd..^./n
--   0010:   c5 b3 a4 73  44 3b 97 53  99 2d 54 e7  1b 2f 91 12   ...sD;.S.-T../..
--   0020:   c8 1a ff c4  3b 2b 72 ea  97 e2 9f e2  93 ad 23 79   ....;+r.......#y
--   0030:   e8 0f 08 54  02 14 fa 09  f0 2d 34 c9  08 6b e1 64   ...T.....-4..k.d
--   0040:   d1 c5 98 7e  d6 a1 98 e2  97 da 46 68  4e 60 11 15   ...~......FhN`..
--   0050:   d8 32 c6 0b  70 f5 2e 76  7f 8d f2 3b  ed de 90 c6   .2..p..v...;....
--   0060:   93 12 9c e1                                          ....
--   </pre>
prettyHexCfg :: Cfg -> ByteString -> String
prettyHex :: ByteString -> String

-- | <a>simpleHex</a> converts a <a>ByteString</a> to a <a>String</a>
--   showing the octets grouped in 32-bit words.
--   
--   Sample output
--   
--   <pre>
--   4b c1 ad 8a  5b 47 d7 57
--   </pre>
simpleHex :: ByteString -> String
data Cfg
Cfg :: Int -> (Int -> String -> String) -> Cfg
[startByte] :: Cfg -> Int
[transformByte] :: Cfg -> Int -> String -> String
defaultCfg :: Cfg
wrapRange :: String -> String -> Int -> Int -> Int -> String -> String
