definition:
|
ppRule :: Options -> Rule -> Doc
ppRule o (Rule vs e)
| null vs = equals <+> ppExp o e
| otherwise = hsep (map ppVarIndex vs) </> equals <+> ppExp o e
ppRule _ (External e) = text "external" <+> dquotes (text e)
|
demand:
|
argument 2
|
deterministic:
|
deterministic operation
|
documentation:
|
--- pretty-print a function rule
|
failfree:
|
<FAILING>
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,{Rule}) |-> _ || (_,{External}) |-> _}
|
name:
|
ppRule
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
Options -> FlatCurry.Types.Rule -> Text.PrettyImpl.Doc
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|