Safe Haskell | None |
---|
File.Binary
Documentation
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
Instances
readBinaryFile :: FilePath -> IO StringSource
writeBinaryFile :: FilePath -> String -> IO ()Source