CurryInfo: propertyfile-3.0.0 / Data.PropertyFile.getPropertyFromFile

definition: Info
 
getPropertyFromFile :: String -> String -> IO (Maybe String)
getPropertyFromFile propfile propname = do
  props <- readPropertyFile propfile
  return $ lookup (map toLower propname)
                  (map (\ (a, b) -> (map toLower a, b)) props)
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
---------------------------------------------------------------------------
Looks up the value of a property stored in a property file.
Uppercase/lowercase is ignored for the property names.
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_) |-> _}
name: Info
 getPropertyFromFile
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> String -> Prelude.IO (Prelude.Maybe String)
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term