[Haskell-cafe] FRP : Best way to save signal history if the program needs to temporarily terminate?

Zans Tangle zans.lancs at googlemail.com
Wed Jan 6 03:23:27 UTC 2016

Hi guys,

so I'm getting my head around FRP, and the theory is starting to make sense
(just seen Conal Elliott's explanation of the original formulation and it
was very illuminative). Overall I'm finding signals to be a really nice
level of abstraction to reason about my code state.

However I'm a little bit stuck on something: lets say I want to switch off
the program, but I want it to save the signal  history so that I can resume
where I left off when I switch it back on.

Is there a ... simple.. way to do it? Because at the moment I'm thinking of
something along the lines of "build an SQL schema that matches the
semantics of each FRP signal, and then build functions to translate between
signal and SQL when needed".

And at this precise instant I don't really feel too excited about
implementing Signal-to-SQL translation from scratch (and I'm not even
completely sure what sort of SQL schema would be needed to support
higher-order FRP either), so I was wondering if anything like that exists
already? Or even something as simple as storing the signal history in a
file and just parsing it to recover it?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20160106/e939d15c/attachment.html>

More information about the Haskell-Cafe mailing list