> And the Simon's warning is for remembering that the effect is about as
> if one sets these instances manually.
> 
> Do i understand correct?

My point was merely that it's easy to forget how much code is needed for an
instance of Show or Read, since it's easy (too easy :-) to stick 'deriving
Show' on every datatype.  This is partly why in Haskell 1.3 the Text class
was split into Show and Read.

GHC could do better, for instance by using interpretive Show and Eq methods
like Hugs - it would involve less code, but probably be slower, so perhaps
only when optimisation is turned off.

Cheers,
        Simon

Reply via email to