6 Nov
2007
6 Nov
'07
2:18 p.m.
Hi folks, Is there a way to declare a 'toString' function, such that toString x | <x is a String> = x toString x | <x's type is an instance of Show> = show x Perhaps, in the type system, there's a way to declare a ToString class, and somehow "inherit" all instances of Show as ToString instances? Thanks, Graham