1module Build.Print where
3import System.IO (hPutStrLn, stderr)
4import System.Exit (exitFailure)
6import qualified Data.Map as Map
7import qualified Data.List as List
8import qualified AST.Module as Module
9import qualified AST.PrettyPrint as Pretty
10import qualified Text.PrettyPrint as P
12types :: Module.Types -> IO ()
15 mapM_ printType (Map.toList ts)
19 print $ P.hsep [ Pretty.variable n
23errors :: [P.Doc] -> IO ()
25 mapM_ print (List.intersperse (P.text " ") errs)
27failure :: String -> IO a
28failure msg = hPutStrLn stderr msg >> exitFailure
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