File: Hexdump.hs

package info (click to toggle)
haskell-bytedump 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 72 kB
  • sloc: haskell: 150; makefile: 2
file content (9 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
import Text.Bytedump
import System.Environment (getArgs)

import qualified Data.ByteString.Lazy as L

main = do
    args     <- getArgs
    fileData <- L.readFile $ args !! 0
    putStrLn $ dumpLBS fileData