[Haskell-cafe] serialize an unknown type
MigMit
miguelimo38 at yandex.ru
Sun Oct 21 19:03:23 CEST 2012
Seems like nobody really understands what is it that you want to accomplish or what your problem is.
Отправлено с iPhone
21.10.2012, в 20:39, Corentin Dupont <corentin.dupont at gmail.com> написал(а):
> Nobody on this one?
> Here is a simplified version:
>
> data Event a where
> InputChoice :: a -> Event a
>
> How to serialize/deserialize this?
>
> Cheers,
> Corentin
>
> On Sat, Oct 20, 2012 at 10:49 PM, Corentin Dupont <corentin.dupont at gmail.com> wrote:
>> Hi the list!
>> I have a simple question, how can I serialize/deserialize a structure like this:
>>
>> data InputChoice c deriving Typeable
>> data Event a where
>> InputChoice :: (Eq c, Show c) => [c] -> c -> Event (InputChoice c)
>> (...)
>>
>> I'd like that the values of type "c" get serialized to a String... That's the easy part, but for deserializing, oops!
>>
>> Cheers,
>> Corentin
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121021/79d91051/attachment.htm>
More information about the Haskell-Cafe
mailing list