binary-file-0.15.24: read/write binary file

Safe HaskellNone

File.Binary

Documentation

class Field f whereSource

Associated Types

type FieldArgument f Source

Methods

fromBinary :: (Binary b, Applicative m, Monad m) => FieldArgument f -> b -> m (f, b)Source

toBinary :: (Binary b, Applicative m, Monad m) => FieldArgument f -> f -> m bSource

fromBits :: (Binary b, Applicative m, Monad m) => FieldArgument f -> AddBits b -> m (f, AddBits b)Source

consToBits :: (Binary b, Applicative m, Monad m) => FieldArgument f -> f -> AddBits b -> m (AddBits b)Source

class (Eq b, Monoid b) => Binary b whereSource

Methods

getBytes :: Int -> b -> (ByteString, b)Source

spanBytes :: (Word8 -> Bool) -> b -> (ByteString, b)Source

unconsByte :: b -> (Word8, b)Source

makeBinary :: ByteString -> bSource