CurryInfo: ertools-3.0.0 / Database.ERD.Generic.restoreDBTerms

definition:
restoreDBTerms :: (Read en, Show a) => String -> String -> (Key -> a -> Dynamic)
               -> (en -> Key) -> (en -> a)  -> IO ()
restoreDBTerms path ename dynpred enkey eninfo = do
  let savefile = path++"/"++ename++".terms"
  putStrLn $ "Restoring from "++savefile
  terms <- readFile savefile >>= return . map read . lines 
  runJustT (mapT_ (\t -> newDBKeyEntry dynpred (enkey t) (eninfo t)) terms)
demand:
no demanded arguments
deterministic:
deterministic operation
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_,_,_,_,_,_) |-> _}
name:
restoreDBTerms
precedence:
no precedence defined
result-values:
_
signature:
(Prelude.Read b, Prelude.Show a) => String -> String -> (Prelude.Int -> a
-> Database.KeyDatabaseSQLite.Dynamic) -> (b -> Prelude.Int) -> (b -> a)
-> Prelude.IO ()
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term