2{-# OPTIONS_GHC -fno-warn-orphans #-}
11import Control.DeepSeq (NFData(rnf))
12import System.Directory (doesDirectoryExist)
13import System.FilePath ((</>))
14import Text.Parsec (ParseError)
15import qualified Data.ByteString as B
16import qualified Data.ByteString.Lazy as BL
17import qualified Data.Text as T
18import qualified Data.Text.Lazy as TL
20#if !MIN_VERSION_bytestring(0,10,0)
21import Data.ByteString.Internal (ByteString(..))
23instance NFData ByteString where
27instance NFData ParseError where
30chunksOf :: Int -> [a] -> [[a]]
32 where go xs = case splitAt k xs of
36rechunkBS :: Int -> B.ByteString -> BL.ByteString
37rechunkBS n = BL.fromChunks . map B.pack . chunksOf n . B.unpack
39rechunkT :: Int -> T.Text -> TL.Text
40rechunkT n = TL.fromChunks . map T.pack . chunksOf n . T.unpack
42pathTo :: String -> IO FilePath
44 exists <- doesDirectoryExist "benchmarks"
46 then "benchmarks" </> wat
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