a more compact showtree

This commit is contained in:
Simon Michael 2008-10-10 11:11:55 +00:00
parent 9b5a35b5d2
commit d172cd0d6e

View File

@ -121,7 +121,7 @@ treeany f t = (f $ root t) || (any (treeany f) $ branches t)
-- treedropall -- do this repeatedly.
showtree :: Show a => Tree a -> String
showtree = drawTree . treemap show
showtree = unlines . filter (containsRegex (mkRegex "[^ |]")) . lines . drawTree . treemap show
-- debugging