1{-# LANGUAGE Rank2Types #-}
3import Network.Wai.Handler.SimpleServer
4import qualified Data.ByteString.Char8 as B8
7main = putStrLn "http://localhost:3000/" >> run 3000 app
10app req = case B8.unpack $ pathInfo req of
11 "/post/" -> postResponse $ requestBody req
14indexResponse :: IO Response
15indexResponse = return Response
17 , headers = [(ContentType, B8.pack "text/html")]
21postResponse :: (forall a. Enumerator a) -> IO Response
22postResponse rb = return Response
24 , headers = [(ContentType, B8.pack "text/plain")]
28index :: Either FilePath a
29index = Left "index.html"
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