graphql-engine/server/lib/pg-client-hs/pg-client.cabal
Auke Booij c36c085016 server: enable all the warnings (that we can)
See [Enable all the warnings](https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3). This PR follows that approach, except that it re-disables those warnings that would prevent a successful build.

There are some newer warning flags that older GHC versions don't recognize. So this also updates some of our CI routines to the GHC version that we're currently using for `graphql-engine` itself, namely 9.2.5. I don't see a reason to keep testing those libraries against older GHC versions.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7614
GitOrigin-RevId: d48a6db09dab29616e273549d0045f98ecb4586f
2023-01-30 11:24:49 +00:00

126 lines
3.2 KiB
Plaintext

cabal-version: 3.0
name: pg-client
version: 0.1.0
homepage: https://github.com/hasura/pg-client-hs
bug-reports: https://github.com/hasura/pg-client-hs/issues
author: Vamshi Surabhi
maintainer: vamshi@hasura.io
copyright: 2017 Hasura Systems Private Limited
license: Apache-2.0
license-file: LICENSE
category: Database
build-type: Simple
extra-source-files: README.md
tested-with: GHC ==8.10.7 || ==9.2.2
source-repository head
type: git
location: https://github.com/hasura/pg-client-hs
common common-all
ghc-options:
-foptimal-applicative-do
-- This is just to keep compile-times in check and might be adjusted later (See mono #2610):
-fmax-simplifier-iterations=2
-- Taken from https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3
-Weverything
-Wno-missing-exported-signatures
-Wno-missing-import-lists
-Wno-missed-specialisations
-Wno-all-missed-specialisations
-Wno-unsafe
-Wno-safe
-Wno-missing-local-signatures
-Wno-monomorphism-restriction
-Wno-missing-kind-signatures
-Wno-missing-safe-haskell-mode
-- We want these warnings, but the code doesn't satisfy them yet:
-Wno-missing-deriving-strategies
default-language: Haskell2010
default-extensions:
NoImplicitPrelude
ImportQualifiedPost
library
import: common-all
hs-source-dirs: src
exposed-modules:
Control.Concurrent.Interrupt
Database.PG.Query
Database.PG.Query.Class
Database.PG.Query.Connection
Database.PG.Query.Listen
Database.PG.Query.Pool
Database.PG.Query.PTI
Database.PG.Query.Transaction
build-depends:
, aeson >=1.0
, aeson-casing >=0.1
, async >=2
, attoparsec >=0.13
, base >=4.7
, bytestring >=0.10
, ekg-core >=0.1
, hashable >=1.2
, hashtables >=1.2
, mmorph >=1.1
, monad-control >=1.0
, mtl >=2.2
, postgresql-binary >=0.12
, postgresql-libpq >=0.9
, resource-pool >=0.2
, retry >=0.9
, safe-exceptions >=0.1
, scientific >=0.3
, template-haskell >=2.11
, text >=1.2
, text-builder >=0.6
, time >=1.6
, transformers >=0.5
, transformers-base >=0.4
, uuid >=1.3
, vector >=0.12
test-suite pg-client-test
import: common-all
type: exitcode-stdio-1.0
hs-source-dirs: test
ghc-options: -threaded -rtsopts -with-rtsopts=-N
main-is: Spec.hs
other-modules:
Interrupt
Timeout
Jsonb
build-depends:
, async
, base
, bytestring
, hspec
, pg-client
, safe-exceptions
, time
, transformers
, aeson
, mtl
, postgresql-libpq
benchmark pg-client-bench
import: common-all
type: exitcode-stdio-1.0
hs-source-dirs: bench
main-is: Main.hs
build-depends:
, base
, bytestring
, file-embed
, hasql
, hasql-pool ==0.5.2.2
, hasql-transaction
, pg-client
, tasty-bench
, text
, transformers