1import Data.ByteString.Char8 (unpack, pack)
2import Data.ByteString.Lazy (fromChunks)
4import Network.Wai.Enumerator
5import Network.Wai.Middleware.Gzip
6import Network.Wai.Middleware.Jsonp
7import Network.Wai.Middleware.CleanPath
8import Network.Wai.Handler.SimpleServer
10app :: [String] -> Application
11app [] _ = return $ Response Status200 [] $ Right $ fromLBS
12 $ fromChunks $ flip map [1..10000] $ \i -> pack $
14 [ "<p>Just this same paragraph again. "
18app ["test.html"] _ = return $ Response Status200 [] $ Left "test.html"
19app ["json"] _ =return $ Response Status200
20 [(ContentType, pack "application/json")]
22app _ _ = return $ Response Status404 [] $ Left "../LICENSE"
25main = run 3000 $ jsonp $ gzip $ cleanPath app
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