CurryInfo: spicey-4.2.0 / Spicey.SpiceUp.replacePackageName

definition: Info
 
replacePackageName :: String -> ERD -> String -> String
replacePackageName _  _   []     = []
replacePackageName pn erd (c:cs)
  | c=='X' && take 12 cs == "XXPKGNAMEXXX"
    = pn ++ replacePackageName pn erd (drop 12 cs)
  | otherwise = c : replacePackageName pn erd cs
demand: Info
 argument 3
deterministic: Info
 deterministic operation
documentation: Info
 
Replace every occurrence of "XXXPKGNAMEXXX" by first argument
failfree: Info
 (_, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,{[]}) |-> {[]} || (_,_,{:}) |-> _}
name: Info
 replacePackageName
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 String -> Database.ERD.ERD -> String -> 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