CurryInfo: currypp-3.2.0 / CPP.ICode.Parser.SQL.Converter.readParserInfo

definition: Info
 
readParserInfo :: Int -> String -> IO (Either String ParserInfo)
readParserInfo verb filename = do
  when (verb > 0) $ putStrLn $
    "Reading SQL model info file '" ++ filename ++ "'..."
  handle <- openFile filename ReadMode
  contents <- hGetContents handle
  case reads contents of
    []        -> return (Left "ParserInfo file not found or corrupted.")
    ((a,_):_) -> return (Right a)
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Reader for parser information file.
@param verb - verbosity level
@param filename - path/name of the .info file
@return either an error message or the parser information
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_) |-> _}
name: Info
 readParserInfo
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Prelude.Int -> String
-> Prelude.IO (Prelude.Either String CPP.ICode.Parser.SQL.ParserInfoType.ParserInfo)
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term