3import Build_doctest (autogen_dir, deps)
4import Control.Applicative
12main = getSources >>= \sources -> doctest $
15 : ("-i" ++ autogen_dir)
17 : ("-optP" ++ autogen_dir ++ "/cabal_macros.h")
18 : "-hide-all-packages"
19 : map ("-package="++) deps ++ sources
21getSources :: IO [FilePath]
22getSources = filter (isSuffixOf ".hs") <$> go "src"
25 (dirs, files) <- getFilesAndDirectories dir
26 (files ++) . concat <$> mapM go dirs
28getFilesAndDirectories :: FilePath -> IO ([FilePath], [FilePath])
29getFilesAndDirectories dir = do
30 c <- map (dir </>) . filter (`notElem` ["..", "."]) <$> getDirectoryContents dir
31 (,) <$> filterM doesDirectoryExist c <*> filterM doesFileExist c
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