don't print the rhs of definitions after checking

This commit is contained in:
rhiannon morris 2023-10-21 20:44:27 +02:00
parent 5977b7225b
commit 3683aec7be
1 changed files with 2 additions and 10 deletions

View File

@ -108,18 +108,10 @@ lookupElim0 = lookupElim
export
prettyDef : {opts : LayoutOpts} -> Name -> Definition -> Eff Pretty (Doc opts)
prettyDef name (MkDef qty type body _) = withPrec Outer $ do
prettyDef name (MkDef qty type _ _) = withPrec Outer $ do
qty <- prettyQty qty.qty
dot <- dotD
name <- prettyFree name
colon <- colonD
type <- prettyTerm [<] [<] type
case body.term0 of
Just body => do
equals <- cstD
body <- prettyTerm [<] [<] body
hangDSingle
(sep [hsep [hcat [qty, dot, name], colon], hsep [type, equals]])
body
Nothing =>
pure $ sep [hsep [hcat [qty, dot, name], colon], type]