<div class="gmail_quote"><br><br>yep<div><br></div><div>add  Show to your abstrac container. , for example:</div><div><br></div><div>data SDynamic=  forall a.Show a =&gt; SDynamic a</div><div><br></div><div>instance Show SDynamic where</div>
<div>     show (SDynamic a)= show a<br>
<br><div class="gmail_quote">2009/10/16 David Virebayre <span dir="ltr">&lt;<a href="mailto:dav.vire%2Bhaskell@gmail.com" target="_blank">dav.vire+haskell@gmail.com</a>&gt;</span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Fri, Oct 16, 2009 at 8:19 PM, Andrew Coppin<br>
&lt;<a href="mailto:andrewcoppin@btinternet.com" target="_blank">andrewcoppin@btinternet.com</a>&gt; wrote:<br>
&gt; Is there any way that you can turn an arbitrary Haskell value into a string?<br>
<br>
&gt; I rephrase: There *is* a way to turn arbitrary values into strings. I know<br>
&gt; there is, because the GHCi debugger *does* it. The question is, does anybody<br>
&gt; know of an /easy/ way to do this?<br>
<br>
</div>Ghci only displays values with a Show instance.<br>
<div><div></div><div>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div></div></div><br></div>
</div><br>