Share connection pool with all http clients

This commit is contained in:
Joe Nelson
2014-12-06 17:42:20 -08:00
parent d2888c62f1
commit da79f6cea1
3 changed files with 10 additions and 6 deletions
+1 -5
View File
@@ -1,5 +1,5 @@
{-# LANGUAGE FlexibleContexts #-}
module App (runApp, app) where
module App (app) where
import Control.Monad (join)
import Data.Monoid ( (<>) )
@@ -33,10 +33,6 @@ import RangeQuery
import PgStructure
import Auth
runApp :: H.Postgres -> H.SessionSettings -> Application
runApp pg sess req respond =
respond =<< H.session pg sess (app req)
app :: Request -> H.Session H.Postgres IO Response
app req =
case (path, verb) of