CurryInfo: benchmark-papers-3.0.0 / ExecuteBenchmarkPaper.processArgs

definition: Info
 
processArgs :: Bool -> [String] -> IO ()
processArgs runlatex args = case args of
  [] -> showError
  ["-h"]      -> showHelp
  ["-?"]      -> showHelp
  ["--help"]  -> showHelp
  "-c":rargs  -> invokeCurry rargs
  ["-l",prog] -> invokeCurry [":load",prog]
  "-f":rargs  -> processArgs True rargs
  [infile]    -> if head infile == '-'
                   then showError
                   else let texfile = if takeExtension infile == ".tex"
                                        then infile
                                        else infile ++ ".tex"
                        in mainExec texfile runlatex
  _ -> showError
 where
  showError =
    error ("Illegal arguments (use '--help' for description):\n" ++ unwords args)
demand: Info
 argument 2
deterministic: Info
 deterministic operation
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{[]}) |-> _ || (_,{:}) |-> _}
name: Info
 processArgs
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Prelude.Bool -> [String] -> Prelude.IO ()
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term