definition:
|
showIncompleteBranch :: QName -> Expr -> [QName] -> String
showIncompleteBranch qf e cs@(_:_) =
"Function '" ++ snd qf ++ "': constructor" ++
(if length cs > 1 then "s" else "") ++ " '" ++
unwords (map snd cs) ++ "' " ++
(if length cs > 1 then "are" else "is") ++ " not covered in:\n" ++
showExp e
showIncompleteBranch qf e [] =
"Function '" ++ snd qf ++ "': the case on literals might be incomplete:\n" ++
showExp e
|
demand:
|
argument 3
|
deterministic:
|
deterministic operation
|
documentation:
|
-- Shows a message about an incomplete branch.
-- If the third argument is the empty list, it is a literal branch.
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
name:
|
showIncompleteBranch
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
(String, String) -> FlatCurry.Types.Expr -> [(String, String)] -> String
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|