Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Byte functions.
- byte_hex_pp :: (Integral i, Show i) => i -> Maybe String
- byte_hex_pp_err :: (Integral i, Show i) => i -> String
- byte_seq_hex_pp :: (Integral i, Show i) => [i] -> String
- read_hex_byte :: (Eq t, Num t) => String -> t
- read_hex_byte_seq :: (Eq t, Num t) => String -> [t]
- load_byte_seq :: Integral i => FilePath -> IO [i]
- store_byte_seq :: Integral i => FilePath -> [i] -> IO ()
- load_hex_byte_seq :: Integral i => FilePath -> IO [i]
- store_hex_byte_seq :: (Integral i, Show i) => FilePath -> [i] -> IO ()
Documentation
byte_hex_pp :: (Integral i, Show i) => i -> Maybe String Source #
Given n in (0,255) make two character hex string.
mapMaybe byte_hex_pp [0x0F,0xF0,0xF0F] == ["0F","F0"]
byte_seq_hex_pp :: (Integral i, Show i) => [i] -> String Source #
unwords
of map
of byte_hex_pp_err
.
byte_seq_hex_pp [0x0F,0xF0] == "0F F0"