we have a running webserver (nothing tested)
This commit is contained in:
parent
fecda5bd45
commit
e4339fb38d
4 changed files with 47 additions and 2 deletions
15
app/Main.hs
15
app/Main.hs
|
@ -1,6 +1,17 @@
|
|||
module Main where
|
||||
|
||||
import Lib
|
||||
-- TODO:
|
||||
-- We need some logic to compile with different backends. Right now we only
|
||||
-- support warp. But a (fast) cgi backend would be nice too.
|
||||
|
||||
-- TODO:
|
||||
-- We need some way too configure things, like the port we run on.
|
||||
-- see Network.Wai.Handler.Warp.Settings and Network.Wai.Handler.Warp.runSettings
|
||||
import WaiApp
|
||||
import Control.Concurrent.MVar
|
||||
import Network.Wai.Handler.Warp
|
||||
|
||||
main :: IO ()
|
||||
main = someFunc
|
||||
main = do
|
||||
serverState <- newMVar newServerState
|
||||
run 8080 $ waiApplication serverState
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue