CurryInfo: verify-non-fail-2.0.0 / Verify.Files.readNonFailCondFile

definition:
 
readNonFailCondFile :: Options -> ClockTime -> String
                    -> IO (Maybe [(QName,NonFailCond)])
readNonFailCondFile opts mtimesrc mname = do
  fname <- getNonFailCondFile opts mname
  existsf <- doesFileExist fname
  if existsf && not (optRerun opts)
    then do
      mtimectf <- getModificationTime fname
      if compareClockTime mtimectf mtimesrc == GT
        then do
          printWhenStatus opts $
            "Reading previously inferred non-fail conditions from '" ++
            fname ++ "'..."
          cts <- readTermFile opts fname
          return $ Just $ map (\ (fn,ct) -> ((mname,fn), ct)) cts
        else return Nothing
    else return Nothing
demand:
 no demanded arguments
deterministic:
 deterministic operation
documentation:
 
Reads the possibly previously inferred non-fail conditions for a
given module if it is up-to-date (where the modification time
of the module is passed as the second argument).
failfree:
 <FAILING>
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {(_,_,_) |-> _}
name:
 readNonFailCondFile
precedence:
 no precedence defined
result-values:
 _
signature:
 Verify.Options.Options -> Data.Time.ClockTime -> String
-> Prelude.IO (Prelude.Maybe [((String, String), ([(Prelude.Int, FlatCurry.Types.TypeExpr)], FlatCurry.Types.Expr))])
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 possibly non-reducible on same data term