File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ module Main (main) where
6
6
7
7
import Data.Acid
8
8
import Data.Acid.Remote
9
+ import Data.Acid.Local (createCheckpointAndClose )
9
10
10
11
import Control.Applicative
11
12
import Control.Monad.Reader
@@ -73,7 +74,7 @@ instance Migrate KeyValue where
73
74
74
75
main :: IO ()
75
76
main = do args <- getArgs
76
- acid <- openLocalState (KeyValue Map. empty)
77
+ acid <- openLocalStateFrom " state/KeyValue " (KeyValue Map. empty)
77
78
case args of
78
79
[key]
79
80
-> do mbKey <- query acid (LookupKey (fromString key))
@@ -86,4 +87,4 @@ main = do args <- getArgs
86
87
_ -> do putStrLn " Usage:"
87
88
putStrLn " key Lookup the value of 'key'."
88
89
putStrLn " key value Set the value of 'key' to 'value'."
89
- closeAcidState acid
90
+ createCheckpointAndClose acid
You can’t perform that action at this time.
0 commit comments