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

definition: Info
 
saveDBTerms :: (Read a, Show a, Show en) => String -> String
            -> (Key -> a -> Dynamic) -> (Key -> a -> en) -> IO ()
saveDBTerms path ename dynpred toentity = do
  keyinfos <- runQ (allDBKeyInfos dynpred)
  let savefile  = path++"/"++ename++".terms"
      terms     = map (uncurry toentity) keyinfos
      showterms = unlines (map show terms)
  if null path
    then putStrLn showterms -- show only
    else do putStrLn $ "Saving into " ++ savefile
            writeFile savefile showterms
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,_,_,_,_,_) |-> _}
name: Info
 saveDBTerms
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 (Prelude.Read a, Prelude.Show a, Prelude.Show b) => String -> String
-> (Prelude.Int -> a -> Database.KeyDatabaseSQLite.Dynamic) -> (Prelude.Int -> a
-> b) -> Prelude.IO ()
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term