1{-# LANGUAGE Rank2Types #-}
2{-# LANGUAGE OverloadedStrings #-}
4import Network.Wai.Handler.Webkit
5import Data.ByteString (ByteString)
6import qualified Data.ByteString.Lazy as L
7import Data.Enumerator (consume, Iteratee)
8import Blaze.ByteString.Builder (fromLazyByteString)
11main = putStrLn "http://localhost:3000/" >> run "Webkit Sample" app
14app req = case pathInfo req of
17 postResponse $ L.fromChunks bss
20indexResponse :: Iteratee ByteString IO Response
21indexResponse = return $ ResponseFile
23 [("Content-Type" , "text/html")]
26postResponse :: L.ByteString -> Iteratee ByteString IO Response
27postResponse lbs = return $ ResponseBuilder
29 [("Content-Type", "text/plain")]
30 (fromLazyByteString lbs)
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