Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Box a = Box {}
- data PicTree
- drawTree :: (n -> String) -> (c -> String) -> Tree n t c -> [String]
- ptLeaf :: String -> PicTree
- drawPicTree :: Box PicTree -> [String]
- drawLine :: [(Int, PicTree)] -> (String, [(Int, PicTree)])
- drawElem :: (Int, PicTree) -> (String, [(Int, PicTree)])
- drawConnector :: [Int] -> String
- pasteCenter :: [a] -> [a] -> [a]
- center :: Int -> String -> String
- center_ :: a -> a -> Int -> [a] -> [a]
- formatTree :: (n -> String) -> (c -> String) -> Tree n t c -> Box PicTree
- prettyTree :: (PrettyPrint n, PrettyPrint c) => Tree n t c -> [String]
Render parse trees
Instances
Instances
drawTree :: (n -> String) -> (c -> String) -> Tree n t c -> [String] Source #
Draw a tree in the terminal.
drawConnector :: [Int] -> String Source #
pasteCenter :: [a] -> [a] -> [a] Source #
prettyTree :: (PrettyPrint n, PrettyPrint c) => Tree n t c -> [String] Source #
drawTree
using prettyPrint
to show symbols.