git.iko.soy
/
typeable/wai
readme
files
commits
refs
on
master
help
sign in
Included webkit sample
29d2aaa
Michael Snoyman
15 years ago
wai-handler-webkit/sample.hs
new file
+10
compare with master
unified
split
@@ -0,0 +1,10 @@
1
+
{-#
LANGUAGE
OverloadedStrings #-}
2
+
import
Network.Wai
3
+
import
Network.Wai.Handler.Webkit
4
+
import
Network.HTTP.Types
5
+
6
+
main
::
IO ()
7
+
main = run
"Sample App"
app
8
+
9
+
app
::
Application
10
+
app _ = return $ responseLBS status200 [(
"Content-Type"
,
"text/html"
)]
"<h1>Hello World!</h1>"
keys
esc 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