CurryInfo: flatcurry-4.0.0 / FlatCurry.FilesRW.readFlatCurryFile'

definition:
readFlatCurryFile' :: String -> IO Prog
readFlatCurryFile' filename = do
  exfcy <- doesFileExist filename
  if exfcy
    then readExistingFCY filename
    else error $
           "EXISTENCE ERROR: FlatCurry file '" ++ filename ++ "' does not exist"
 where
  readExistingFCY fname = do
    filecontents <- readFile fname
#ifdef  __KMCC__
    return (read filecontents)
#else
    return (readUnqualifiedTerm ["FlatCurry.Types","Prelude"] filecontents)
demand:
no demanded arguments
deterministic:
deterministic operation
failfree:
_
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_) |-> _}
name:
readFlatCurryFile'
precedence:
no precedence defined
result-values:
_
signature:
String -> Prelude.IO FlatCurry.Types.Prog
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
reducible on all ground data terms