[Haskell-cafe] acid-state problem.

13 views
Skip to first unread message

Magicloud Magiclouds

unread,
Oct 23, 2014, 4:07:15 AM10/23/14
to haskell-cafe
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.

Magicloud Magiclouds

unread,
Oct 23, 2014, 5:01:22 AM10/23/14
to haskell-cafe
It worked! Seems like it is the function (a network action) above update that failed that breaks the whole process.
Reply all
Reply to author
Forward
0 new messages