[Haskell-cafe] Make a DSL serializable

Corentin Dupont corentin.dupont at gmail.com
Sun Mar 24 16:58:30 CET 2013


Hi Café,
I have a DSL like this:
data Exp where
    OnEvent      :: EventName -> (Int -> Exp) -> Exp
(...)

The "OnEvent" element carries a function (the handler to be called when the
event happens), and that makes my DSL non showable/serializable.
How could I fix that? This is a real handicap not to be able to serialize
the state of my whole application because of that :)

Thanks,
Corentin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130324/e9818a45/attachment.htm>


More information about the Haskell-Cafe mailing list