CurryInfo: spicey-4.2.0 / Spicey.SpiceUp.patchMakeFile

definition: Info
 
patchMakeFile :: ERD -> String -> String
patchMakeFile _                      []     = []
patchMakeFile erd@(ERD _ entities _) (c:cs)
  | c=='X' && take 14 cs == "XXCURRYHOMEXXX"
  = installDir ++ patchMakeFile erd (drop 14 cs)
  | c=='X' && take 16 cs == "XXICONTROLLERXXX"
  = unwords (map (\ (Entity ename _) -> "-i Controller." ++ ename) entities) ++
    patchMakeFile erd (drop 16 cs)
  | otherwise
  = c : patchMakeFile erd cs
demand: Info
 argument 2
deterministic: Info
 deterministic operation
documentation: Info
 
Replace every occurrence of `XXXCURRYHOMEXXX` by `installDir` and
every occurrince of `XXXICONTROLLERXXX` by
`-i <controllermod1> ... -i <controllermodn>`.
failfree: Info
 (_, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,{[]}) |-> {[]} || ({ERD},{:}) |-> _}
name: Info
 patchMakeFile
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 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