CurryInfo: propertyfile-3.0.0 / Data.PropertyFile.updatePropertyFile

definition: Info
 
updatePropertyFile :: String -> String -> String -> IO ()
updatePropertyFile file pname pval = do
  props <- readPropertyFile file
  if lookup pname props == Nothing
   then appendFile file (pname++"="++pval++"\n")
   else changePropertyInFile file pname pval
demand: Info
 no demanded arguments
deterministic: Info
 deterministic operation
documentation: Info
 
Update a property in a property file or add it, if it is not already
there.
@param file - the name of the property file
@param pname - the name of the property
@param pvalue - the new value of the property
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,_) |-> _}
name: Info
 updatePropertyFile
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> String -> 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