uhc-util-0.1.3.9: UHC utilities

Safe HaskellNone
LanguageHaskell98

UHC.Util.Serialize

Synopsis

Documentation

type SPut = State SPutS () Source

type SGet x = StateT SGetS Get x Source

class Serialize x where Source

Minimal complete definition

sput, sget

sgetShared :: forall x. (Ord x, Serialize x, Typeable x) => SGet x Source

sputEnum8 :: Enum x => x -> SPut Source

putSPutFile :: FilePath -> SPut -> IO () Source

SPut to FilePath

getSGetFile :: FilePath -> SGet a -> IO a Source

SGet from FilePath

putSerializeFile :: Serialize a => FilePath -> a -> IO () Source

Serialize to FilePath

getSerializeFile :: Serialize a => FilePath -> IO a Source

Unserialize from FilePath