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
66
77import            Data.Acid 
88import            Data.Acid.Remote 
9+ import            Data.Acid.Local  (createCheckpointAndClose )
910
1011import            Control.Applicative 
1112import            Control.Monad.Reader 
@@ -73,7 +74,7 @@ instance Migrate KeyValue where
7374
7475main  ::  IO () 
7576main =  do  args <-  getArgs
76-           acid <-  openLocalState  (KeyValue  Map. empty)
77+           acid <-  openLocalStateFrom  " state/KeyValue " KeyValue  Map. empty)
7778          case  args of 
7879            [key]
7980              ->  do  mbKey <-  query acid (LookupKey  (fromString key))
@@ -86,4 +87,4 @@ main = do args <- getArgs
8687            _ ->  do  putStrLn  " Usage:" 
8788                    putStrLn  "   key               Lookup the value of 'key'." 
8889                    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