[Haskell-cafe] acid-state problem.
magicloud.magiclouds at gmail.com
Thu Oct 23 09:01:10 UTC 2014
It worked! Seems like it is the function (a network action) above update
that failed that breaks the whole process.
On Thu, Oct 23, 2014 at 4:06 PM, Magicloud Magiclouds <
magicloud.magiclouds at gmail.com> wrote:
> I have following code. In init, I called update, createCheckpoint, and
> close. So every time the code runs, if the DB did not exist, it would ask
> some configurations and create one. But actually it asks for init every
> time. How should I use it?
> state <- openLocalStateFrom dbFolder $ State ConfNone
> conf <- query state QueryState
> case conf of
> ConfNone -> init state m
> c -> process state m c
> And for G+, please use magiclouds#gmail.com.
And for G+, please use magiclouds#gmail.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe