Rollback to aeson 0.8.0.2 to allow building with stackage, and adds stack.yml
This commit is contained in:
+2
-2
@@ -36,7 +36,7 @@ executable postgrest
|
|||||||
, HTTP, convertible, http-types
|
, HTTP, convertible, http-types
|
||||||
, case-insensitive
|
, case-insensitive
|
||||||
, scientific, time
|
, scientific, time
|
||||||
, aeson, network >= 2.6
|
, aeson == 0.8.0.*, network >= 2.6
|
||||||
, bytestring, text, split, string-conversions
|
, bytestring, text, split, string-conversions
|
||||||
, stringsearch
|
, stringsearch
|
||||||
, containers, unordered-containers
|
, containers, unordered-containers
|
||||||
@@ -118,7 +118,7 @@ Test-Suite spec
|
|||||||
, Spec
|
, Spec
|
||||||
, SpecHelper
|
, SpecHelper
|
||||||
Build-Depends: base, hspec == 2.1.*, QuickCheck
|
Build-Depends: base, hspec == 2.1.*, QuickCheck
|
||||||
, hspec-wai == 0.5.*, hspec-wai-json
|
, hspec-wai, hspec-wai-json
|
||||||
, hasql, hasql-backend
|
, hasql, hasql-backend
|
||||||
, hasql-postgres
|
, hasql-postgres
|
||||||
, warp, wai
|
, warp, wai
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
flags: {}
|
||||||
|
packages:
|
||||||
|
- '.'
|
||||||
|
extra-deps:
|
||||||
|
- Ranged-sets-0.3.0
|
||||||
|
- packdeps-0.4.1
|
||||||
|
resolver: lts-3.1
|
||||||
@@ -89,7 +89,7 @@ spec = afterAll_ resetDb $ around withApp $ do
|
|||||||
it "fails with 400 and error" $
|
it "fails with 400 and error" $
|
||||||
post "/simple_pk" "}{ x = 2"
|
post "/simple_pk" "}{ x = 2"
|
||||||
`shouldRespondWith` ResponseMatcher {
|
`shouldRespondWith` ResponseMatcher {
|
||||||
matchBody = Just [json| {"message":"Failed to parse JSON payload. Failed reading: not a valid json value"} |]
|
matchBody = Just [json| {"message":"Failed to parse JSON payload. Failed reading: satisfy"} |]
|
||||||
, matchStatus = 400
|
, matchStatus = 400
|
||||||
, matchHeaders = []
|
, matchHeaders = []
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user