2020-01-24 02:20:58 +03:00
|
|
|
-- Global project configuration.
|
|
|
|
--
|
|
|
|
-- This file can be overridden with cabal.project.local (see e.g. cabal.project.dev)
|
|
|
|
--
|
|
|
|
-- If you need to switch between several local configurations you can also
|
|
|
|
-- create a symlink to this file with a different name, e.g.:
|
|
|
|
-- $ ln -s cabal.project cabal.project.myconfig
|
|
|
|
-- $ ln -s cabal.project.freeze cabal.project.myconfig.freeze
|
|
|
|
-- ...and then create a new set of overrides in:
|
|
|
|
-- cabal.project.myconfig.local
|
|
|
|
-- ...and then invoke cabal with
|
|
|
|
-- $ cabal new-build --project-file=cabal.project.myconfig
|
|
|
|
--
|
2020-02-13 20:38:23 +03:00
|
|
|
-- See: https://www.haskell.org/cabal/users-guide/nix-local-build.html#configuring-builds-with-cabal-project
|
2021-08-11 07:18:40 +03:00
|
|
|
|
2021-11-15 16:21:37 +03:00
|
|
|
with-compiler: ghc-8.10.7
|
|
|
|
|
2021-11-24 11:19:19 +03:00
|
|
|
-- package-level parallelism:
|
|
|
|
jobs: $ncpus
|
|
|
|
|
2021-08-11 07:18:40 +03:00
|
|
|
packages: server
|
2020-01-18 01:07:15 +03:00
|
|
|
|
2020-05-13 15:33:16 +03:00
|
|
|
constraints:
|
2021-08-11 07:18:40 +03:00
|
|
|
-- Ensure we don't end up with a freeze file that forces an incompatible
|
|
|
|
-- version in CI for `Setup.hs` scripts.
|
2020-04-03 11:24:51 +03:00
|
|
|
setup.Cabal <3.4
|
2020-05-13 15:33:16 +03:00
|
|
|
|
2020-01-18 01:07:15 +03:00
|
|
|
package *
|
2021-10-20 19:14:00 +03:00
|
|
|
-- NOTE: this gets applied to both local (hasura) packages and dependencies,
|
|
|
|
-- but optimizations for local hasura packages are overridden/controlled
|
|
|
|
-- via the 'optimize-hasura' flag.
|
2020-01-18 01:07:15 +03:00
|
|
|
optimization: 2
|
2020-04-03 11:24:51 +03:00
|
|
|
-- For tooling, e.g. 'weeder', and IDE-like stuff:
|
|
|
|
ghc-options: -fwrite-ide-info
|
2020-01-18 01:07:15 +03:00
|
|
|
|
|
|
|
haddock-html: true
|
|
|
|
haddock-hoogle: true
|
|
|
|
haddock-hyperlink-source: true
|
|
|
|
haddock-quickjump: true
|
|
|
|
|
|
|
|
package graphql-engine
|
|
|
|
ghc-options: -j
|
|
|
|
haddock-options: "--show-all"
|
|
|
|
|
2021-09-16 14:03:01 +03:00
|
|
|
source-repository-package
|
|
|
|
type: git
|
2021-09-16 23:16:08 +03:00
|
|
|
location: https://github.com/hasura/kriti-lang.git
|
2021-11-22 15:22:15 +03:00
|
|
|
tag: v0.2.2
|
2021-09-16 14:03:01 +03:00
|
|
|
|
2020-01-18 01:07:15 +03:00
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/pg-client-hs.git
|
2021-09-29 19:20:06 +03:00
|
|
|
tag: f28738e18b7038627fb59b93dbc67929fe427c57
|
2020-01-18 01:07:15 +03:00
|
|
|
|
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/graphql-parser-hs.git
|
2021-10-22 14:53:16 +03:00
|
|
|
tag: 36212bcc3815434a1bc25dc96f091a783b880ca4
|
2020-01-18 01:07:15 +03:00
|
|
|
|
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/ci-info-hs.git
|
2021-03-03 10:01:44 +03:00
|
|
|
tag: be578a01979fc95137cc2c84827f9fafb99df60f
|
2020-09-01 07:56:11 +03:00
|
|
|
|
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/pool.git
|
2021-02-15 16:32:19 +03:00
|
|
|
tag: bc4c3f739a8fb8ec4444336a34662895831c9acf
|
2021-02-23 20:37:27 +03:00
|
|
|
|
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/fpco/odbc.git
|
2021-02-24 10:46:09 +03:00
|
|
|
tag: 7c0cea45d0b779419eb16177407c4ee9e7ba4c6f
|
2021-02-23 20:37:27 +03:00
|
|
|
|
|
|
|
package odbc
|
|
|
|
ghc-options: -Wwarn
|
|
|
|
-- Our CI compiles with -Werror, which is also applied to those packages
|
|
|
|
-- while it's fine for packages we maintain, we can't actually enforce
|
|
|
|
-- that third-party packages are warning-free, hence this -Wno-error.
|
|
|
|
-- When the changes in odbc are released, we can instead depend on
|
|
|
|
-- the hackage version, and remove it from this list of packages.
|
2021-08-06 00:07:17 +03:00
|
|
|
|
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/ekg-core.git
|
|
|
|
tag: e31b47d5c67e1347f141079ad2d18f682e1b046f
|
|
|
|
|
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/ekg-json.git
|
|
|
|
tag: 098e3a5951c4991c823815706f1f58f608bb6ec3
|
2021-08-11 07:18:40 +03:00
|
|
|
|
2021-11-19 20:05:01 +03:00
|
|
|
-- This is v1.2.3.2 with https://github.com/haskell/text/pull/348
|
2021-09-08 07:12:45 +03:00
|
|
|
-- cherry-picked. When 1.3 is released we can move from this fork.
|
|
|
|
source-repository-package
|
|
|
|
type: git
|
|
|
|
location: https://github.com/hasura/text.git
|
2021-11-19 20:05:01 +03:00
|
|
|
tag: 874c3164fadf39a83382359d2b6ce941a3e134da
|
2021-09-08 07:12:45 +03:00
|
|
|
|