graphql-engine/server/lib/common.yaml
Samir Talwar aa18f65217 server: Move the schema parsers to their own library.
It's about time.

To do this I had to check a few more boxes.

* I copied the flags from `graphql-engine.cabal` to the libraries in `server/lib`.
* I moved `Cacheable` instances of schema parser types beside the typeclass declaration.
* I removed imports of `Hasura.Prelude` from the tests, and rewrote them accordingly.
* I copied the `TestMonad` parse monad into `server/src-test/Hasura/GraphQL/Schema/RemoteTest.hs`, which was using it. I think this could be done with the real thing, but I tried replacing it with constraints and it messed with my head somewhat.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5311
GitOrigin-RevId: ebebcc50a16f2d517b7f730fe72410827ca3e86c
2022-08-05 13:53:39 +00:00

44 lines
971 B
YAML

common-boilerplate: &common-boilerplate
version: 1.0.0
author:
- Hasura, Inc.
github: hasura/github-engine
extra-source-files:
- ../../../LICENSE
common-lib: &common-lib
flags:
optimize-hasura:
description: Compile hasura code with appropriate optimizations
default: true
manual: false
profiling:
description: Configures the project to be profiling-compatible
default: false
manual: true
ghc-options:
- "-foptimal-applicative-do"
- "-Wall"
- "-Werror"
- "-Wcompat"
- "-Wincomplete-record-updates"
- "-Wincomplete-uni-patterns"
- "-Wredundant-constraints"
- "-Wmissing-export-lists"
when:
- condition: flag(profiling)
cpp-options: -DPROFILING
- condition: flag(optimize-hasura)
then:
ghc-options:
- "-fexpose-all-unfoldings"
- "-O2"
else:
# we just want to build fast
ghc-options:
- "-O0"