[Haskell-cafe] Serialising both data and functions

Clinton Mead clintonmead at gmail.com
Thu Dec 7 07:16:07 UTC 2017

The cereal <https://hackage.haskell.org/package/cereal> package contains a
useful framework for serialising data. I've also noticed that the static
could be useful for serialising functions, at least those which are
statically applied (I understand the caveat that this breaks if the
executable is recompiled).

But it occurred to me that I might want to serialise a combination of these
two things, for example, a static function call with a number of arguments,
but the first of those arguments being non-static data.

Is there a package to that combines these two use cases, namely static
functions with non-static data? I'm happy to start writing one myself, but
I don't want to reinvent the wheel.

My ultimate aim is to combine this with acid-state
<https://hackage.haskell.org/package/acid-state> so the current requirement
to effectively pre-declare all possible operations on your data is relaxed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20171207/d7964167/attachment.html>

More information about the Haskell-Cafe mailing list