CurryInfo: cpm-manage-3.0.0 / CPM.Package.HTML.getUploadTime

definition: Info
 
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: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Get the upload time of the package (i.e., the time of the tar file).
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 getUploadTime
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 CPM.Package.Package -> Prelude.IO (Prelude.Maybe Data.Time.CalendarTime)
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term