uhc-util-0.1.3.0: UHC utilities

Safe HaskellNone

UHC.Util.Binary

Synopsis

Documentation

hGetBinary :: Binary a => Handle -> IO aSource

Decode from Handle

getBinaryFile :: Binary a => FilePath -> IO aSource

Decode from FilePath

getBinaryFPath :: Binary a => FPath -> IO aSource

Decode from FilePath

hPutBinary :: Binary a => Handle -> a -> IO ()Source

Encode to Handle

putBinaryFile :: Binary a => FilePath -> a -> IO ()Source

Encode to FilePath

putBinaryFPath :: Binary a => FPath -> a -> IO ()Source

Encode to FPath, ensuring existence of path

putEnum :: Enum x => x -> PutSource

put an Enum

getEnum :: Enum x => Get xSource

get an Enum

putEnum8 :: Enum x => x -> PutSource

put an Enum as Word8

getEnum8 :: Enum x => Get xSource

get an Enum from Word8

putList :: (Binary a, Binary b) => (x -> Bool) -> (x -> (a, b)) -> x -> PutSource

put a []

getList :: (Binary a, Binary b) => x -> (a -> b -> x) -> Get xSource

get a []