CurryInfo: global-3.2.0 / Data.Global.readGlobalP

definition: Info
 
readGlobalP :: Read a => GlobalP a -> IO a
readGlobalP (GlobalP f) = exclusiveIO (f ++ ".LOCK") $ do
  cnt <- openFile f ReadMode >>= hGetContents
  case reads cnt of
    [(x,_)] -> return x
    _       -> error $ "Cannot read persistent global entity in file: " ++ f ++
                       "\nFile contents:\n" ++ cnt
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
Reads the current value of a persistent global entity.
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{GlobalP}) |-> _}
name: Info
 readGlobalP
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 Prelude.Read a => GlobalP a -> Prelude.IO a
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 reducible on all ground data terms