RefSerialize-0.3.0.0: Write to and read from ByteStrings maintaining internal memory references
Data.RefSerialize.Serialize
type MFun = CharSource
type VarName = StringSource
data ShowF Source
Constructors
Instances
type Context = HashTable Int (StableName MFun, MFun, [ShowF], Int)Source
data Error Source
data StatW Source
data STW a Source
monadic serialization
empty :: IO (HashTable Int val)Source
assocs :: Ord a => HashTable a b -> [(a, b)]Source
insert :: key -> val -> HashTable key val -> HashTable key valSource
delete :: key -> HashTable key val -> HashTable key valSource
lookup :: key -> HashTable key val -> Maybe valSource
toList :: HashTable key val -> [(key, val)]Source
fromList :: [(Int, val)] -> HashTable Int valSource
readContext :: ByteString -> ByteString -> (ByteString, ByteString)Source
hasht :: a -> (Int, t)Source
varName :: a -> [Char]Source
numVar :: String -> Maybe IntSource