bytedump: Flexible byte dump helpers for human readers.

[ bsd3, debug, library ] [ Propose Tags ] [ Report a vulnerability ]

A set of helpers to dump bytes with lots of different output formats easy to read for humans eyes.


[Skip to Readme]

Modules

[Index]

Flags

Automatic Flags
NameDescriptionDefault
executable

Build the executable

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.9, 1.0
Dependencies base (>=3 && <5), bytestring [details]
License BSD-3-Clause
Copyright Vincent Hanquez <vincent@snarc.org>
Author Vincent Hanquez <vincent@snarc.org>
Maintainer Vincent Hanquez <vincent@snarc.org>
Category Debug
Home page http://github.com/vincenthz/hs-bytedump
Source repo head: git clone git://github.com/vincenthz/hs-bytedump
Uploaded by VincentHanquez at 2012-09-06T06:52:28Z
Distributions Debian:1.0, LTSHaskell:1.0, NixOS:1.0, Stackage:1.0
Reverse Dependencies 7 direct, 33 indirect [details]
Executables Hexdump
Downloads 6632 total (17 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for bytedump-1.0

[back to package description]

Haskell Bytedump library

This is a set of helper to dump bytes (list of word8, string, bytestring, lazy bytestring) into nice to read tables like the unix utility hexdump.

Example

this is an example using the default configuration.

 | 7f 45 4c 46 02 01 01 00 : 00 00 00 00 00 00 00 00  | .ELF............
 | 02 00 3e 00 01 00 00 00 : 68 5e 40 00 00 00 00 00  | ..>.....h^@.....
 | 40 00 00 00 00 00 00 00 : 00 99 0a 00 00 00 00 00  | @...............
 | 00 00 00 00 40 00 38 00 : 08 00 40 00 20 00 1d 00  | ....@.8...@. ...
 | 06 00 00 00 05 00 00 00 : 40 00 00 00 00 00 00 00  | ........@.......
 | 40 00 40 00 00 00 00 00 : 40 00 40 00 00 00 00 00  | @.@.....@.@.....
 | c0 01 00 00 00 00 00 00 : c0 01 00 00 00 00 00 00  | ................
 | 08 00 00 00 00 00 00 00 : 03 00 00 00 04 00 00 00  | ................
 | 00 02 00 00 00 00 00 00 : 00 02 40 00 00 00 00 00  | ..........@.....
 | 00 02 40 00 00 00 00 00 : 1c 00 00 00 00 00 00 00  | ..@.............
 | 1c 00 00 00 00 00 00 00 : 01 00 00 00 00 00 00 00  | ................
 | 01 00 00 00 05 00 00 00 : 00 00 00 00 00 00 00 00  | ................
 | 00 00 40 00 00 00 00 00 : 00 00 40 00 00 00 00 00  | ..@.......@.....
 | a4 e7 09 00 00 00 00 00 : a4 e7 09 00 00 00 00 00  | ................
 | 00 00 20 00 00 00 00 00 : 01 00 00 00 06 00 00 00  | .. .............
 | 00 f0 09 00 00 00 00 00 : 00 f0 69 00 00 00 00 00  | ..........i.....
 | 00 f0 69 00 00 00 00 00 : 98 a7 00 00 00 00 00 00  | ..i.............
 | 18 5f 01 00 00 00 00 00 : 00 00 20 00 00 00 00 00  | ._........ .....
 | 02 00 00 00 06 00 00 00 : 30 f0 09 00 00 00 00 00  | ........0.......
 | 30 f0 69 00 00 00 00 00 : 30 f0 69 00 00 00 00 00  | 0.i.....0.i.....