[Haskell-cafe] x -> String
Andrew Coppin
andrewcoppin at btinternet.com
Fri Oct 16 14:26:38 EDT 2009
David Virebayre wrote:
> On Fri, Oct 16, 2009 at 8:19 PM, Andrew Coppin
> <andrewcoppin at btinternet.com> 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...
More information about the Haskell-Cafe
mailing list