ReadP package:RefSerialize

deserialize a variable serialized by showpBinary
if a is an instance of Read, readpText can be used as the readp method the drawback is that the data inside is not inspected for common references so it is recommended to create your own readp method for your complex data structures