|
definition: |
compactProgAndReplace :: [Option] -> String -> IO ()
compactProgAndReplace options = runModuleAction compact
where
compact mname = do
generateCompactFlatCurryFile (Required defaultRequired : options)
mname (mname ++ "_comp.fcy")
let fcyname = flatCurryFileName mname
system $ "mv " ++ mname ++ "_comp.fcy " ++ fcyname
putStrLn $
"curry-compactflat: compacted program '" ++ fcyname ++ "' written."
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
replace a FlatCurry program by a compactified version: |
|
failfree: |
<FAILING> |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_) |-> _}
|
|
name: |
compactProgAndReplace |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
[FlatCurry.Compact.Option] -> String -> Prelude.IO () |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |