Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- type SPut = State SPutS ()
- type SGet x = StateT SGetS Get x
- class Serialize x where
- sput :: x -> SPut
- sget :: SGet x
- sputNested :: x -> SPut
- sgetNested :: SGet x
- sputPlain :: (Binary x, Serialize x) => x -> SPut
- sgetPlain :: (Binary x, Serialize x) => SGet x
- sputUnshared :: (Binary x, Serialize x) => x -> SPut
- sputShared :: (Ord x, Serialize x, Typeable x) => x -> SPut
- sgetShared :: forall x. (Ord x, Serialize x, Typeable x) => SGet x
- sputWord8 :: Word8 -> SPut
- sgetWord8 :: SGet Word8
- sputWord16 :: Word16 -> SPut
- sgetWord16 :: SGet Word16
- sputEnum8 :: Enum x => x -> SPut
- sgetEnum8 :: Enum x => SGet x
- runSPut :: SPut -> Put
- runSGet :: SGet x -> Get x
- serialize :: Serialize x => x -> Put
- unserialize :: Serialize x => Get x
- putSPutFile :: FilePath -> SPut -> IO ()
- getSGetFile :: FilePath -> SGet a -> IO a
- putSerializeFile :: Serialize a => FilePath -> a -> IO ()
- getSerializeFile :: Serialize a => FilePath -> IO a
- class Generic a
Documentation
class Serialize x where Source
Nothing
sputNested :: x -> SPut Source
sgetNested :: SGet x Source
sputUnshared :: (Binary x, Serialize x) => x -> SPut Source
sputWord16 :: Word16 -> SPut Source
unserialize :: Serialize x => Get x 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
class Generic a
Representable types of kind *. This class is derivable in GHC with the DeriveGeneric flag on.