[Haskell-cafe] serialize an unknown type

Corentin Dupont corentin.dupont at gmail.com
Sat Oct 20 22:49:04 CEST 2012

Hi the list!
I have a simple question, how can I serialize/deserialize a structure like

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!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20121020/802bb271/attachment.htm>

More information about the Haskell-Cafe mailing list