definition:
|
curryCompilerCommand :: ReplState -> [String] -> String
curryCompilerCommand rst vs = unwords [ccExec (compiler rst), cmpopts]
where
cmpopts = unwords $
[ -- pass current value of "bindingoptimization" property to compiler:
-- "-Dbindingoptimization=" ++ rcValue (rcVars rst) "bindingoptimization"
(ccVerbOpt (compiler rst)) (show (verbose rst))
] ++
(if ccCurryPath (compiler rst)
then []
else map ("-i" ++) (loadPaths rst)) ++
filter notNull (map mapCompilerOption (cmpOpts rst)) ++
(if null (parseOpts rst)
then []
else [(ccParseOpt (compiler rst)) (parseOpts rst)]) ++
(case freeMode rst of
LegacyFreeMode -> []
CommandLineFreeMode trans -> [trans (zip vs [1..])] ++
[ "-B" | showBindings rst])
|
demand:
|
no demanded arguments
|
deterministic:
|
deterministic operation
|
documentation:
|
-- Generate the base command to call the Curry compiler:
|
failfree:
|
(_, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_) |-> _}
|
name:
|
curryCompilerCommand
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
REPL.State.ReplState -> [String] -> String
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|