CurryInfo: contract-prover-4.0.0 / ContractProver.fileInPath

definition: Info
 
fileInPath :: String -> IO Bool
fileInPath file = do
  path <- getEnv "PATH"
  dirs <- return $ splitOn ":" path
  (fmap (any id)) $ mapM (doesFileExist . (</> file)) dirs
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Checks whether a file exists in one of the directories on the PATH.
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_) |-> _}
name: Info
 fileInPath
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> Prelude.IO Prelude.Bool
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term