print quantity on let
This commit is contained in:
parent
03c197bd04
commit
0fdd4741be
1 changed files with 4 additions and 3 deletions
|
@ -349,9 +349,10 @@ prettyLets dnames xs lets = sequence $ snd $ go lets where
|
||||||
go (lets :< (qty, x, rhs)) =
|
go (lets :< (qty, x, rhs)) =
|
||||||
let (ys, docs) = go lets
|
let (ys, docs) = go lets
|
||||||
doc = do
|
doc = do
|
||||||
|
lett <- [|letD <+> prettyQty qty|]
|
||||||
x <- prettyTBind x
|
x <- prettyTBind x
|
||||||
rhs <- withPrec Outer $ assert_total prettyElim dnames ys rhs
|
rhs <- withPrec Outer $ assert_total prettyElim dnames ys rhs
|
||||||
hangDSingle (hsep [!letD, x, !cstD]) (hsep [rhs, !inD]) in
|
hangDSingle (hsep [lett, x, !cstD]) (hsep [rhs, !inD]) in
|
||||||
(ys :< x, docs :< doc)
|
(ys :< x, docs :< doc)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue