From 04cf7ed628e840839e08f0d3c7e624200ded81b3 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 8 Apr 2019 22:24:35 +0200 Subject: Fix warnings in Pretty --- src/Pretty.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3-70-g09d2