Safe Haskell | None |
---|---|
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
Documentation
class Serialize x where Source
sputNested :: x -> SPut Source
sgetNested :: SGet x Source
Serialize Bool | |
Serialize Char | |
Serialize Int | |
Serialize Int16 | |
Serialize Int32 | |
Serialize Int64 | |
Serialize Integer | |
Serialize Word16 | |
Serialize Word32 | |
Serialize Word64 | |
Serialize () | |
Serialize a => Serialize [a] | |
Serialize a => Serialize (Maybe a) | |
(Ord a, Serialize a) => Serialize (Set a) | |
(Serialize a, Serialize b) => Serialize (a, b) | |
(Ord k, Serialize k, Serialize e) => Serialize (Map k e) | |
(Ord b, Ord a, Serialize a, Serialize b) => Serialize (Rel a b) | |
(Ord k, Serialize k, Serialize v) => Serialize (VarMp' k v) | |
(Ord k, Serialize k, Serialize v) => Serialize (SGam k v) | |
(Serialize a, Serialize b, Serialize c) => Serialize (a, b, c) |
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