uhc-util-0.1.6.3: UHC utilities

Safe HaskellNone
LanguageHaskell98

UHC.Util.Binary

Synopsis

Documentation

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

Decode from Handle

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

Decode from FilePath

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

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 -> Put Source

put an Enum

getEnum :: Enum x => Get x Source

get an Enum

putEnum8 :: Enum x => x -> Put Source

put an Enum as Word8

getEnum8 :: Enum x => Get x Source

get an Enum from Word8

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

put a []

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

get a []