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@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.