RefSerialize-0.2: Write to and read from Strings maintaining internal memory referencesSource codeContentsIndex
Data.RefSerialize
Synopsis
module Data.Parser
class Serialize c where
showp :: c -> ST String
readp :: ST c
rshowp :: c -> ST String
rreadp :: ST c
rShow :: Serialize c => c -> String
rRead :: Serialize c => String -> c
insertVar :: (a -> ST String) -> a -> ST String
readVar :: Serialize c => ST c -> ST c
runR :: ST a -> String -> a
runW :: ST String -> String
Documentation
module Data.Parser
class Serialize c whereSource
Methods
showp :: c -> ST StringSource
readp :: ST cSource
rshowp :: c -> ST StringSource
rreadp :: ST cSource
show/hide Instances
Serialize a => Serialize ([] a)
rShow :: Serialize c => c -> StringSource
rRead :: Serialize c => String -> cSource
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
runW :: ST String -> StringSource
Produced by Haddock version 2.3.0