
19 Oct
2011
19 Oct
'11
12:49 p.m.
On 19 October 2011 15:59, AM
Note that other programming languages have had to solve this exact problem and they usually end up with multiple functions- one for debugging, one for serialization, one for displaying how the object was constructed.
As per Haskell with Show (representation) and Data.Binary (serialization), of course.