1{-# LANGUAGE FlexibleInstances #-}
2module Reporting.PrettyPrint where
4import qualified Data.Map as Map
5import Text.PrettyPrint as P
7import qualified AST.Helpers as Help
13 pretty :: Dealiaser -> Bool -> a -> Doc
22instance Pretty String where
29commaCat :: [Doc] -> Doc
31 cat (punctuate comma docs)
34commaSep :: [Doc] -> Doc
36 sep (punctuate comma docs)
39parensIf :: Bool -> Doc -> Doc
41 if bool then parens doc else doc
44variable :: String -> Doc
46 if Help.isOp x then parens (text x) else text x
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list