|
definition: |
getUploadTime :: Package -> IO (Maybe CalendarTime)
getUploadTime pkg = do
hastar <- doesFileExist pkgtarpath
if hastar then do ct <- getModificationTime pkgtarpath
return $ Just $ toUTCTime ct
else return Nothing
where
pkgtar = packageId pkg ++ ".tar.gz"
pkgtarpath = "PACKAGES" </> pkgtar
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
Get the upload time of the package (i.e., the time of the tar file). |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_) |-> _}
|
|
name: |
getUploadTime |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
CPM.Package.Package -> Prelude.IO (Prelude.Maybe Data.Time.CalendarTime) |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |