RefSerialize-0.2.3: Write to and read from Strings maintaining internal memory references

Data.RefSerialize

Synopsis

Documentation

class Serialize c whereSource

Instances

(Show a, Read a) => Serialize a 
Serialize a => Serialize [a] 

insertVar :: (a -> ST String) -> a -> ST StringSource

insert a variable at this position. and the expression value in the where part. runW rshowp (1::Int) -> 1 runW (insertVar rshowp) (1::Int) -> v1 where { v1=1} This is useful when the object is referenced many times

readVar :: Serialize c => ST c -> ST cSource

runR :: ST a -> String -> aSource