[Haskell-cafe] acid-state problem.

Magicloud Magiclouds magicloud.magiclouds at gmail.com
Thu Oct 23 08:06:59 UTC 2014


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141023/ac6c73ca/attachment.html>


More information about the Haskell-Cafe mailing list