]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - Network/HTTP/Lucu/Httpd.hs
HelloWorld works again.
[Lucu.git] / Network / HTTP / Lucu / Httpd.hs
index e1abcab63d8fc5344262f3cde0f14eec136347b8..ac1dc77a66379508ac8f1bf2c0528c1f2ddd037a 100644 (file)
@@ -48,8 +48,8 @@ import Prelude.Unicode
 -- >              }
 --
 -- FIXME: update the above example
-runHttpd ∷ Config → SchemeMap → IO ()
-runHttpd cnf sm
+runHttpd ∷ HostMapper α ⇒ Config → α → IO ()
+runHttpd cnf hm
     = do let launchers
                  = catMaybes
                    [ do addr ← cnfServerV4Addr cnf
@@ -108,7 +108,7 @@ runHttpd cnf sm
       httpLoop port so
           = do (h, addr)  ← SL.accept so
                tQueue     ← mkInteractionQueue
-               readerTID  ← forkIO $ requestReader cnf sm h port addr tQueue
+               readerTID  ← forkIO $ requestReader cnf hm h port addr tQueue
                _writerTID ← forkIO $ responseWriter cnf h tQueue readerTID
                httpLoop port so