definition:
|
showNonDetDeps :: AOutFormat -> NonDetDeps -> String
showNonDetDeps AText [] = "deterministic"
showNonDetDeps ANote [] = ""
showNonDetDeps ANote xs@(_:_) = intercalate " " (nub (map (snd . fst) xs))
showNonDetDeps AText xs@(_:_) =
"depends on non-det. operations: " ++
intercalate ", " (map showNDOpInfo xs)
where
showNDOpInfo (ndop,cfs) = showQName ndop ++
(if null cfs
then ""
else " (called from " ++ intercalate " -> " (map showQName cfs) ++ ")")
showQName (mn,fn) = mn++"."++fn
|
demand:
|
arguments 1 2
|
deterministic:
|
deterministic operation
|
documentation:
|
-- Show determinism dependency information as a string.
|
failfree:
|
(_, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{({AText},{[]}) |-> {:} || ({AText},{:}) |-> _ || ({ANote},{[]}) |-> {[]} || ({ANote},{:}) |-> _}
|
name:
|
showNonDetDeps
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
Analysis.Types.AOutFormat -> [((String, String), [(String, String)])] -> String
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
reducible on all ground data terms
|