@hackage bytable0.0.0.3

data from/to ByteString

You can read data from ByteString.

some = do
    x <- take 4
    y <- take 8
    return (x :: Int, y :: Integer)