CurryInfo: call-analysis-3.2.0 / Analysis.showDTerm

definition: Info
 
showDTerm :: DTerm -> String
showDTerm DBot         = "_"
showDTerm CutVar       = "*"
showDTerm (DCons f []) = f
showDTerm (DCons f args@(x:xs))
 | f == ":" && length xs == 1 = -- format list constructor:
   showDTerm x ++ ":" ++ showDTerm (head xs)
 | take 2 f == "(," = -- format tuple constructors:
   "(" ++ intercalate "," (map showDTerm args) ++ ")"
 | otherwise =
   f ++ "(" ++ intercalate "," (map showDTerm args) ++ ")"
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
show a depth-k term
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({DBot}) |-> {:} || ({CutVar}) |-> {:} || ({DCons}) |-> _}
name: Info
 showDTerm
precedence: Info
 no precedence defined
result-values: Info
 _
signature: Info
 DTerm -> 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