<div dir="ltr">If something can't be shown (converted to a string), then it can't be printed (as a string).</div><div class="gmail_extra"><br><div class="gmail_quote">On 25 April 2015 at 17:51, Daniel van den Eijkel <span dir="ltr"><<a href="mailto:dvde@gmx.net" target="_blank">dvde@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I wrote a parser and it took me a while to realize why GHCi suddenly did<br>
not show any result nor an error message anymore.<br>
<br>
My parsing function has type (IO Expression), Expression is in class Show.<br>
<br>
After changing the parser to (IO Declaration), it did not show anything<br>
anymore, because Declaration was not in class Show.<br>
<br>
When I typed (parseFile "input.txt" >>= print), I got the error message<br>
and understood what was going on. But for I while I was really confused<br>
what's happening.<br>
<br>
Just wanted to share this.<br>
<br>
Best,<br>
Daniel<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>Regards</div><div dir="ltr"><div><br></div><div>Sumit Sahrawat</div></div></div></div></div></div></div>
</div>