<p>Does this mean we&#39;re going to see music FRP examples soon?!</p>
<p>amindfv / Tom</p>
<div class="gmail_quote">On Feb 9, 2012 2:17 PM, &quot;Heinrich Apfelmus&quot; &lt;<a href="mailto:apfelmus@quantentunnel.de">apfelmus@quantentunnel.de</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear list,<br>
<br>
the  Show  class is extremely useful for exploring Haskell in a terminal, but sometimes, I just want something fancier. For instance, I&#39;m currently dabbling with sound generation and it is only natural that I want to hear the sound instead of seeing a textual representation. Another example would be graphics, that are simply drawn on screen whenever you evaluate their value.<br>

<br>
Of course, this is simple to implement with a class<br>
<br>
    class Demonstrable a where<br>
        demo :: a -&gt; IO ()<br>
<br>
    instance Demonstrable Sound where demo = play<br>
    instance Demonstrable Sound where demo = draw<br>
    instance Demonstrable GUI   where demo = run<br>
    etc.<br>
<br>
<br>
However, I don&#39;t want to reinvent the wheel, small as it may be, hence my question: is there a package on hackage that already defines a class similar to  Demonstrable ? Or any other projects in this direction, like, say, a fancy REPL built on wxHaskell?<br>

<br>
<br>
Best regards,<br>
Heinrich Apfelmus<br>
<br>
--<br>
<a href="http://apfelmus.nfshost.com" target="_blank">http://apfelmus.nfshost.com</a><br>
<br>
<br>
______________________________<u></u>_________________<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/<u></u>mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>