diff options
-rw-r--r-- | src/Pretty.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Pretty.hs b/src/Pretty.hs index 935bc03..7792c0d 100644 --- a/src/Pretty.hs +++ b/src/Pretty.hs @@ -38,7 +38,7 @@ pprintPrOneline budget = pprintPr budget maxBound pprintPrX :: Budget -> Int -> Int -> PrTree -> [String] pprintPrX _ _ _ (Leaf str) = [str] -pprintPrX budget wid x (Node "" subs) = map (pprintPrOneline (decNode budget)) subs +pprintPrX budget _ _ (Node "" subs) = map (pprintPrOneline (decNode budget)) subs pprintPrX budget wid x (Node prefix subs) = let subrenders = map (pprintPrX (decNode budget) wid (x + indentWid)) subs in if any ((> 1) . length) subrenders |