Use newer deps for GHC 8 compatibility (#619)
This commit is contained in:
+3
-2
@@ -3,8 +3,9 @@ dependencies:
|
|||||||
- "~/.stack"
|
- "~/.stack"
|
||||||
- ".stack-work"
|
- ".stack-work"
|
||||||
pre:
|
pre:
|
||||||
- curl -L https://github.com/commercialhaskell/stack/releases/download/v1.0.2/stack-1.0.2-linux-x86_64.tar.gz | tar zx -C /tmp
|
- curl -L https://github.com/commercialhaskell/stack/releases/download/v1.1.2/stack-1.1.2-linux-x86_64.tar.gz | tar zx -C /tmp
|
||||||
- sudo mv /tmp/stack-1.0.2-linux-x86_64/stack /usr/bin
|
- sudo mv /tmp/stack-1.1.2-linux-x86_64/stack /usr/bin
|
||||||
|
- sudo apt-get update; sudo apt-get install --only-upgrade binutils
|
||||||
- createuser --superuser --no-password postgrest_test
|
- createuser --superuser --no-password postgrest_test
|
||||||
- createdb -O postgrest_test -U ubuntu postgrest_test
|
- createdb -O postgrest_test -U ubuntu postgrest_test
|
||||||
override:
|
override:
|
||||||
|
|||||||
+6
-4
@@ -30,8 +30,9 @@ executable postgrest
|
|||||||
"-with-rtsopts=-N -I2"
|
"-with-rtsopts=-N -I2"
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
build-depends: aeson (>= 0.8 && < 0.10) || (>= 0.11 && < 0.12)
|
build-depends: aeson (>= 0.8 && < 0.10) || (>= 0.11 && < 0.12)
|
||||||
, base >= 4.8 && < 5
|
, base >= 4.8 && < 6
|
||||||
, bytestring
|
, bytestring
|
||||||
|
, bytestring-tree-builder == 0.2.7
|
||||||
, case-insensitive
|
, case-insensitive
|
||||||
, cassava
|
, cassava
|
||||||
, containers
|
, containers
|
||||||
@@ -39,7 +40,7 @@ executable postgrest
|
|||||||
, errors
|
, errors
|
||||||
, hasql == 0.19.12
|
, hasql == 0.19.12
|
||||||
, hasql-pool == 0.4.1
|
, hasql-pool == 0.4.1
|
||||||
, hasql-transaction == 0.4.4.1
|
, hasql-transaction == 0.4.5
|
||||||
, http-types
|
, http-types
|
||||||
, interpolatedstring-perl6
|
, interpolatedstring-perl6
|
||||||
, jwt
|
, jwt
|
||||||
@@ -48,6 +49,7 @@ executable postgrest
|
|||||||
, mtl
|
, mtl
|
||||||
, optparse-applicative >= 0.11 && < 0.13
|
, optparse-applicative >= 0.11 && < 0.13
|
||||||
, parsec
|
, parsec
|
||||||
|
, postgresql-binary == 0.9.0.1
|
||||||
, postgrest
|
, postgrest
|
||||||
, regex-tdfa
|
, regex-tdfa
|
||||||
, safe >= 0.3 && < 0.4
|
, safe >= 0.3 && < 0.4
|
||||||
@@ -74,7 +76,7 @@ library
|
|||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes
|
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes
|
||||||
build-depends: aeson
|
build-depends: aeson
|
||||||
, base >=4.6 && <5
|
, base
|
||||||
, bytestring
|
, bytestring
|
||||||
, case-insensitive
|
, case-insensitive
|
||||||
, cassava
|
, cassava
|
||||||
@@ -155,7 +157,7 @@ Test-Suite spec
|
|||||||
, hasql-pool
|
, hasql-pool
|
||||||
, hasql-transaction
|
, hasql-transaction
|
||||||
, heredoc
|
, heredoc
|
||||||
, hspec == 2.2.*
|
, hspec
|
||||||
, hspec-wai
|
, hspec-wai
|
||||||
, hspec-wai-json
|
, hspec-wai-json
|
||||||
, http-types
|
, http-types
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ pJsonPath = (++) <$> many pJsonPathStep <*> ( (:[]) <$> (string "->>" *> pFieldN
|
|||||||
pField :: Parser Field
|
pField :: Parser Field
|
||||||
pField = lexeme $ (,) <$> pFieldName <*> optionMaybe pJsonPath
|
pField = lexeme $ (,) <$> pFieldName <*> optionMaybe pJsonPath
|
||||||
|
|
||||||
|
aliasSeparator :: Parser ()
|
||||||
aliasSeparator = char ':' >> notFollowedBy (char ':')
|
aliasSeparator = char ':' >> notFollowedBy (char ':')
|
||||||
|
|
||||||
pSimpleSelect :: Parser SelectItem
|
pSimpleSelect :: Parser SelectItem
|
||||||
|
|||||||
+16
-7
@@ -1,15 +1,24 @@
|
|||||||
resolver: lts-5.17
|
resolver: lts-6.2
|
||||||
extra-deps:
|
extra-deps:
|
||||||
- Ranged-sets-0.3.0
|
- Ranged-sets-0.3.0
|
||||||
- bytestring-tree-builder-0.2.6
|
- bytestring-tree-builder-0.2.7
|
||||||
- hasql-0.19.12
|
- hasql-0.19.12
|
||||||
- hasql-pool-0.4.1
|
- hasql-pool-0.4.1
|
||||||
- hasql-transaction-0.4.4.1
|
- hasql-transaction-0.4.5
|
||||||
- packdeps-0.4.2.1
|
- jwt-0.7.2
|
||||||
|
- postgresql-binary-0.9.0.1
|
||||||
|
- binary-parser-0.5.2
|
||||||
|
- contravariant-extras-0.3.2
|
||||||
|
- placeholders-0.1
|
||||||
- postgresql-error-codes-1
|
- postgresql-error-codes-1
|
||||||
- postgresql-binary-0.9
|
- success-0.2.6
|
||||||
|
- tuple-th-0.2.5
|
||||||
|
- wai-cors-0.2.5
|
||||||
|
- cryptohash-sha256-0.11.100.0
|
||||||
|
- hackage-security-0.5.2.1
|
||||||
|
|
||||||
ghc-options:
|
ghc-options:
|
||||||
postgrest: -O2 -Werror -Wall -fwarn-monomorphism-restriction -fwarn-missing-exported-sigs -fwarn-identities
|
postgrest: -O2 -Werror -Wall -fwarn-identities
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- '.'
|
- .
|
||||||
|
|||||||
Reference in New Issue
Block a user