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

definition:
getTestResults :: String -> IO (Maybe String)
getTestResults pkgid = do
  let testfile = "TEST" </> pkgid ++ ".csv"
  hastests <- doesFileExist testfile
  if hastests
    then do
      tinfos <- readCompleteFile testfile >>= return . readCSV
      case tinfos of
        [_, (_:ct:rc:_)] | rc == "0" -> return $ Just $
                                          "Succesfully tested at " ++ ct
        _                          -> return Nothing
    else return Nothing
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
-- Get some string describing a successful test.
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_) |-> _}
name:
getTestResults
precedence:
no precedence defined
result-values:
_
signature:
String -> Prelude.IO (Prelude.Maybe String)
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term