CurryInfo: julia-3.0.0 / Language.Julia.Pretty.ppStm

definition:
ppStm :: JLStm -> Doc
ppStm (JLAssign e1 e2) = ppExp e1 <+> char '=' <+> ppExp e2
ppStm (JLPCall f es)   = text f <> parens (ppExps es)
ppStm (JLReturn e)     = text "return" <+> ppExp e
ppStm (JLWhile b body) =
  nest 2 (text "while" <+> ppExp b $$ ppStms body) $$ text "end"
ppStm (JLFor v lb ub body) =
  nest 2 (text "for" <+> ppVar v <+> text "in" <+>
          ppExp lb <> char ':' <> ppExp ub $$ ppStms body) $$ text "end"
ppStm (JLIf b ts fs)   = nest 2 (text "if" <+> ppExp b $$ ppStms ts) $$
                         ppElse fs
 where
  ppElse estm = case estm of
    [JLIf eb ets efs] -> nest 2 (text "elseif" <+> ppExp eb $$ ppStms ets) $$
                         ppElse efs
    _                 -> nest 2 (text "else" $$ ppStms estm) $$ text "end"
demand:
argument 1
deterministic:
deterministic operation
documentation:
--- Pretty print a Julia statement.
failfree:
_
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{({JLAssign}) |-> _ || ({JLPCall}) |-> _ || ({JLReturn}) |-> _ || ({JLWhile}) |-> _ || ({JLFor}) |-> _ || ({JLIf}) |-> _}
name:
ppStm
precedence:
no precedence defined
result-values:
_
signature:
Language.Julia.Types.JLStm -> Text.PrettyImpl.Doc
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term