uhc-util-0.1.7.0: UHC utilities

Safe HaskellSafe
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