Safe Haskell | None |
---|
Documentation
type FieldArgument f Source
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
getBytes :: Int -> b -> (ByteString, b)Source
spanBytes :: (Word8 -> Bool) -> b -> (ByteString, b)Source
unconsByte :: b -> (Word8, b)Source
makeBinary :: ByteString -> bSource
readBinaryFile :: FilePath -> IO StringSource
writeBinaryFile :: FilePath -> String -> IO ()Source