Merge pull request #269 from diogob/build_with_stack

Build with stack
This commit is contained in:
Joe Nelson
2015-08-20 15:29:10 -07:00
4 changed files with 11 additions and 8 deletions
+1
View File
@@ -5,3 +5,4 @@ cabal.sandbox.config
hscope.out
codex.tags
.anvil
.stack-work
+2 -2
View File
@@ -36,7 +36,7 @@ executable postgrest
, HTTP, convertible, http-types
, case-insensitive
, scientific, time
, aeson, network >= 2.6
, aeson >= 0.8, network >= 2.6
, bytestring, text, split, string-conversions
, stringsearch
, containers, unordered-containers
@@ -118,7 +118,7 @@ Test-Suite spec
, Spec
, SpecHelper
Build-Depends: base, hspec == 2.1.*, QuickCheck
, hspec-wai == 0.5.*, hspec-wai-json
, hspec-wai, hspec-wai-json
, hasql, hasql-backend
, hasql-postgres
, warp, wai
+7
View File
@@ -0,0 +1,7 @@
flags: {}
packages:
- '.'
extra-deps:
- Ranged-sets-0.3.0
- packdeps-0.4.1
resolver: lts-3.1
+1 -6
View File
@@ -87,12 +87,7 @@ spec = afterAll_ resetDb $ around withApp $ do
context "with invalid json payload" $
it "fails with 400 and error" $
post "/simple_pk" "}{ x = 2"
`shouldRespondWith` ResponseMatcher {
matchBody = Just [json| {"message":"Failed to parse JSON payload. Failed reading: not a valid json value"} |]
, matchStatus = 400
, matchHeaders = []
}
post "/simple_pk" "}{ x = 2" `shouldRespondWith` 400
context "jsonb" . after_ (clearTable "json") $ do
it "serializes nested object" $ do