Hi,<br>Sorry if it was not enough explicit.<br>I want to write functions like this:<br><br>serialize :: (Show a) =&gt; Event a -&gt; IO ()<br>deserialize :: (Read a) =&gt; IO () -&gt; Event a<br><br>The functions would write and read the data in a file, storing/retrieving also the type &quot;a&quot; I suppose...<br>
BR,<br>C<br><br><br><br><div class="gmail_quote">On Sun, Oct 21, 2012 at 7:03 PM, MigMit <span dir="ltr">&lt;<a href="mailto:miguelimo38@yandex.ru" target="_blank">miguelimo38@yandex.ru</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto"><div><div>Seems like nobody really understands what is it that you want to accomplish or what your problem is.<br><br>ïÔÐÒÁ×ÌÅÎÏ Ó iPhone</div><div><br>21.10.2012, × 20:39, Corentin Dupont &lt;<a href="mailto:corentin.dupont@gmail.com" target="_blank">corentin.dupont@gmail.com</a>&gt; ÎÁÐÉÓÁÌ(Á):<br>
<br></div><div><div class="h5"><blockquote type="cite"><div>Nobody on this one?<br>Here is a simplified version:<br><br>data Event a where<br>ššš InputChoice ::š a -&gt; Event a<br><br>How to serialize/deserialize this?<br>
<br>Cheers,<br>Corentin<br><br><div class="gmail_quote">On Sat, Oct 20, 2012 at 10:49 PM, Corentin Dupont <span dir="ltr">&lt;<a href="mailto:corentin.dupont@gmail.com" target="_blank">corentin.dupont@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi the list!<br>I have a simple question, how can I serialize/deserialize a structure like this:<br><br>data InputChoice cš deriving Typeable<br>

data Event a where<br>ššš InputChoice :: (Eq c, Show c) =&gt; [c] -&gt; c -&gt; Event (InputChoice c)<br>
š(...)<br><br>I&#39;d like that the values of type &quot;c&quot; get serialized to a String... That&#39;s the easy part, but for deserializing, oops!<br><br>Cheers,<br>Corentin<br>
</blockquote></div><br>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Haskell-Cafe mailing list</span><br><span><a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a></span><br>
<span><a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a></span><br></div></blockquote></div></div></blockquote></div><br>