definition:
|
ppCRhs :: Doc -> Options -> CRhs -> Doc
ppCRhs d opts rhs = case rhs of
CSimpleRhs exp lDecls ->
(nest' opts $ sep [d, ppCExpr (expAndGuardOpts lDecls) exp])
$$ maybePPlDecls lDecls
CGuardedRhs conds lDecls ->
ppCGuardedRhs (expAndGuardOpts lDecls) d conds
$$ maybePPlDecls lDecls
where expAndGuardOpts ls = last $ optsWithIncreasingNamespaces
varsOfLDecl
funcNamesOfLDecl
ls
opts
maybePPlDecls ls = if null ls
then empty
else indent' opts (ppWhereDecl opts ls)
|
demand:
|
argument 3
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Pretty-print the right hand side of a rule (or case expression), including
--- the d sign, where `d` is the relation (as doc) between the left hand side
--- and the right hand side -- usually this is one of `=`, `->`.
--- If the right hand side contains local declarations, they will be pretty
--- printed too, further indented.
|
failfree:
|
<FAILING>
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,_,{CSimpleRhs}) |-> _ || (_,_,{CGuardedRhs}) |-> _}
|
name:
|
ppCRhs
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
Text.PrettyImpl.Doc -> Options -> AbstractCurry.Types.CRhs
-> Text.PrettyImpl.Doc
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|