CurryInfo: benchmark-papers-3.0.0 / ExecuteBenchmarkPaper.saveOldFile

definition: Info
 
saveOldFile :: String -> IO ()
saveOldFile fname = do
  exfname <- doesFileExist fname
  when exfname $ do
    mdate <- getModificationTime fname
    ctime <- toCalendarTime mdate
    let savename = fname ++ "." ++
                   intercalate "_"
                     (map (\f -> show (f ctime))
                          [ctYear,ctMonth,ctDay,ctHour,ctMin,ctSec])
    renameFile fname savename
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
If a file with the given name `fname` exists, it is moved
to the file `fname.date`, where `date` is the modification date
of this file.
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 saveOldFile
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> 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