graphql-engine/cabal/ci.project.local
Auke Booij aeff6e162a server: fix cabal and warnings for arrows related packages
#7730 added `package` stanzas for all our internal Haskell libraries, so that `-Werror` was switched on for all of them. However, #7534 was developed simultaneously, and merged shortly after, so that we missed `package` stanzas for `hasura-incremental` and `arrows-extra`. Then #7761 added one for `hasura-incremental`. This PR fixes one warning for a test suite there, and adds the missing `package` stanza for `arrows-extra`.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7770
GitOrigin-RevId: 5f5c3fb5d4852c88ed2e14a3fa83fe264aec895b
2023-02-02 19:53:13 +00:00

83 lines
2.1 KiB
Plaintext

-- The project configuration used when building in CI.
reject-unconstrained-dependencies: all
package *
ghc-options:
-- We compile with package-level parallelism, so just use a small amount
-- of module-level parallelism for dependencies:
-- TODO: tune me
-j2
-- For performance, with `-j`:
+RTS -A64m -n2m -RTS
-- -----------------------------------------------------------
-- Allow for dead-code elimination at link-time, to reduce binary size
-- TODO WHEN WE NEXT UPGRADE GHC: move this into cabal.project
ghc-options: -split-sections
ld-options: -Wl,--gc-sections
-- -----------------------------------------------------------
-- Enable optimizations in all local (hasura) packages:
flags: +optimize-hasura
package graphql-engine
ghc-options:
-- At this point though we definitely want full module-level parallelism:
-j
-Werror
tests: true
benchmarks: true
-- Set common options to internal libraries
package aeson-ordered
ghc-options: -j -Werror
package api-tests
ghc-options: -j -Werror
package arrows-extra
ghc-options: -j -Werror
package dc-api
ghc-options: -j -Werror
package graphql-parser
ghc-options: -j -Werror
package hasura-error-message
ghc-options: -j -Werror
package hasura-incremental
ghc-options: -j -Werror
package hasura-prelude
ghc-options: -j -Werror
package hasura-schema-parsers
ghc-options: -j -Werror
package pg-client
ghc-options: -j -Werror
package resource-pool
ghc-options: -j -Werror
package test-harness
ghc-options: -j -Werror
-- %%%-BEGIN-PRO-ONLY-CONTENT-%%%
-- NOTE:
-- The label directly above this note marks the beginning of the pro-only
-- section of this file that should be removed by `Copybara` when migrating
-- this file to the public `graphql-engine` repository. We use a simple
-- regular expression to identify these segments (see the "transformations" in
-- `copy.bara.sky`), so please take care when manipulating this label!
package graphql-engine-pro
ghc-options:
-- At this point though we definitely want full module-level parallelism:
-j
-Werror
tests: true