
16 Oct
2009
16 Oct
'09
3:15 p.m.
yep
add Show to your abstrac container. , for example:
data SDynamic= forall a.Show a => SDynamic a
instance Show SDynamic where
show (SDynamic a)= show a
2009/10/16 David Virebayre
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. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe