definition:
|
renameCurryModule :: String -> CurryProg -> CurryProg
renameCurryModule newname prog =
updCProgName (const newname) (updQNamesInCProg rnm prog)
where
rnm mn@(mod,n) | mod == progName prog = (newname,n)
| otherwise = mn
|
demand:
|
no demanded arguments
|
deterministic:
|
deterministic operation
|
documentation:
|
----------------------------------------------------------------------------
--- Renames a Curry module, i.e., updates the module name and all qualified
--- names in a program.
|
failfree:
|
(_, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_) |-> _}
|
name:
|
renameCurryModule
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
String -> AbstractCurry.Types.CurryProg -> AbstractCurry.Types.CurryProg
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|