@@ -27,7 +27,7 @@ safeRead d s =
2727lookup' :: String -> [(String, String)] -> String
2828lookup' key pairs = fromMaybe "" $ lookup key pairs
2929
30−run :: Application -> IO ()
30+run :: Application () -> IO ()
3131run app = do
3232 vars <- getEnvironment
3333 let input = requestBodyHandle System.IO.stdin
@@ -35,7 +35,7 @@ run app = do
3535 run'' vars input output Nothing app
3636
3737runSendfile :: String -- ^ sendfile header
38− -> Application -> IO ()
38+ -> Application () -> IO ()
3939runSendfile sf app = do
4040 vars <- getEnvironment
4141 let input = requestBodyHandle System.IO.stdin
@@ -45,7 +45,7 @@ runSendfile sf app = do
4545run' :: [(String, String)] -- ^ all variables
4646 -> System.IO.Handle -- ^ responseBody of input
4747 -> System.IO.Handle -- ^ destination for output
48− -> Application
48+ -> Application ()
4949 -> IO ()
5050run' vars inputH outputH app = do
5151 let input = requestBodyHandle inputH
@@ -56,7 +56,7 @@ run'' :: [(String, String)] -- ^ all variables
5656 -> (forall a. Int -> Enumerator B.ByteString IO a) -- ^ responseBody of input
5757 -> (B.ByteString -> IO ()) -- ^ destination for output
5858 -> Maybe String -- ^ does the server support the X-Sendfile header?
59− -> Application
59+ -> Application ()
6060 -> IO ()
6161run'' vars inputH outputH xsendfile app = do
6262 let rmethod = B.pack $ lookup' "REQUEST_METHOD" vars