mirror of
https://github.com/typeable/wai.git
synced 2025-01-07 14:51:40 +03:00
Included webkit sample
This commit is contained in:
parent
d3a16c8f65
commit
29d2aaaf60
10
wai-handler-webkit/sample.hs
Normal file
10
wai-handler-webkit/sample.hs
Normal file
@ -0,0 +1,10 @@
|
||||
{-# LANGUAGE OverloadedStrings #-}
|
||||
import Network.Wai
|
||||
import Network.Wai.Handler.Webkit
|
||||
import Network.HTTP.Types
|
||||
|
||||
main :: IO ()
|
||||
main = run "Sample App" app
|
||||
|
||||
app :: Application
|
||||
app _ = return $ responseLBS status200 [("Content-Type", "text/html")] "<h1>Hello World!</h1>"
|
Loading…
Reference in New Issue
Block a user