[Haskell-cafe] acid-state problem.

Magicloud Magiclouds 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:

> Hi,
>
>   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...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141023/1a999370/attachment.html>


More information about the Haskell-Cafe mailing list