main module of the executable needs to be Main, with PostgREST.Main build fails

This commit is contained in:
Ruslan Talpa
2016-02-29 13:57:34 +02:00
parent 40a30d7b02
commit 0548d65911
4 changed files with 35 additions and 33 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ import SpecHelper
import qualified Hasql.Pool as P
import PostgREST.DbStructure (getDbStructure)
import PostgREST.Main (postgrest)
import PostgREST.App (handleRequest)
import Data.String.Conversions (cs)
import qualified Feature.AuthSpec
@@ -27,8 +27,8 @@ main = do
result <- P.use pool $ getDbStructure "test"
let dbStructure = either (error.show) id result
withApp = return $ postgrest testCfg dbStructure pool
ltdApp = return $ postgrest testLtdRowsCfg dbStructure pool
withApp = return $ handleRequest testCfg dbStructure pool
ltdApp = return $ handleRequest testLtdRowsCfg dbStructure pool
hspec $ do
mapM_ (beforeAll_ resetDb . before withApp) specs