graphql-engine/server/lib/hasura-prelude/hasura-prelude.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

47 lines
1.1 KiB
Plaintext

cabal-version: 3.0
name: hasura-prelude
version: 0.1.0.0
library
hs-source-dirs: src
build-depends:
aeson,
aeson-casing,
autodocodec,
base,
base64-bytestring,
bytestring,
containers,
deepseq,
hashable,
insert-ordered-containers,
lens,
mtl,
nonempty-containers,
pretty-simple,
text,
time,
transformers,
transformers-base,
unordered-containers,
witherable
default-language: Haskell2010
exposed-modules:
Data.Time.Clock.Units
Hasura.Prelude
ghc-options:
-- 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