
16 Oct
2009
16 Oct
'09
2:26 p.m.
David Virebayre wrote:
On Fri, Oct 16, 2009 at 8:19 PM, Andrew Coppin
wrote: Is there any way that you can turn an arbitrary Haskell value into a string?
I rephrase: There *is* a way to turn arbitrary values into strings. I know there is, because the GHCi debugger *does* it. The question is, does anybody know of an /easy/ way to do this?
Ghci only displays values with a Show instance.
Well, I can live with getting an empty string if no Show instance is available. But I can't figure out how to even do that...