2module Type.PrettyPrint where
5import qualified AST.PrettyPrint as Src
7data ParensWhen = Fn | App | Never
9class PrettyType a where
10 pretty :: ParensWhen -> a -> Doc
12commaSep :: [Doc] -> Doc
13commaSep docs = sep (punctuate comma docs)
15parensIf :: Bool -> Doc -> Doc
16parensIf bool doc = if bool then parens doc else doc
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