CurryInfo: nonstrictunif-optimize-3.0.0 / NonStrictOpt.hasCommentOption

definition: Info
 
hasCommentOption :: String -> String -> IO Bool
hasCommentOption filename option = do
  existsfile <- doesFileExist filename
  if existsfile
   then do cwords <- readWordsInFirstCommentLine filename
           return (option `elem` cwords)
   else return False
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
---------------------------------------------------------------------------
Checks whether a file exists and the file starts with a comment of the form
 "{- ...-}" and contains the second argument as a word in the comment:
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_) |-> _}
name: Info
 hasCommentOption
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> 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