Hoogle Search
Within LTS Haskell 24.18 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
showTreeWith :: (k -> a -> String) -> Bool -> Bool -> Map k a -> Stringcontainers Data.Map.Internal.Debug The expression (showTreeWith showelem hang wide map) shows the tree that implements the map. Elements are shown using the showElem function. If hang is True, a hanging tree is shown otherwise a rotated tree is shown. If wide is True, an extra wide version is shown.
Map> let t = fromDistinctAscList [(x,()) | x <- [1..5]] Map> putStrLn $ showTreeWith (\k x -> show (k,x)) True False t (4,()) +--(2,()) | +--(1,()) | +--(3,()) +--(5,()) Map> putStrLn $ showTreeWith (\k x -> show (k,x)) True True t (4,()) | +--(2,()) | | | +--(1,()) | | | +--(3,()) | +--(5,()) Map> putStrLn $ showTreeWith (\k x -> show (k,x)) False True t +--(5,()) | (4,()) | | +--(3,()) | | +--(2,()) | +--(1,())
showWide :: Bool -> [String] -> String -> Stringcontainers Data.Map.Internal.Debug No documentation available.
showsBars :: [String] -> ShowScontainers Data.Map.Internal.Debug No documentation available.
showsTree :: (k -> a -> String) -> Bool -> [String] -> [String] -> Map k a -> ShowScontainers Data.Map.Internal.Debug No documentation available.
showsTreeHang :: (k -> a -> String) -> Bool -> [String] -> Map k a -> ShowScontainers Data.Map.Internal.Debug No documentation available.
showTree :: Whoops "showTree has moved to Data.Map.Internal.Debug.showTree." => Map k a -> Stringcontainers Data.Map.Lazy This function has moved to showTree.
- 
containers Data.Map.Lazy This function has moved to showTreeWith.
 showTree :: Whoops "showTree has moved to Data.Map.Internal.Debug.showTree." => Map k a -> Stringcontainers Data.Map.Strict This function has moved to showTree.
- 
containers Data.Map.Strict This function has moved to showTreeWith.
 showTree :: Whoops "showTree has moved to Data.Map.Internal.Debug.showTree." => Map k a -> Stringcontainers Data.Map.Strict.Internal This function has moved to showTree.