graphql-engine/server/src-lib/Hasura
Auke Booij 4c8ea8e865 Import pg-client-hs as PG
Result of executing the following commands:
```shell
# replace "as Q" imports with "as PG" (in retrospect this didn't need a regex)
git grep -lE 'as Q($|[^a-zA-Z])' -- '*.hs' | xargs sed -i -E 's/as Q($|[^a-zA-Z])/as PG\1/'
# replace " Q." with " PG."
git grep -lE ' Q\.' -- '*.hs' | xargs sed -i 's/ Q\./ PG./g'
# replace "(Q." with "(PG."
git grep -lE '\(Q\.' -- '*.hs' | xargs sed -i 's/(Q\./(PG./g'
# ditto, but for [, |, { and !
git grep -lE '\[Q\.' -- '*.hs' | xargs sed -i 's/\[Q\./\[PG./g'
git grep -l '|Q\.' -- '*.hs' | xargs sed -i 's/|Q\./|PG./g'
git grep -l '{Q\.' -- '*.hs' | xargs sed -i 's/{Q\./{PG./g'
git grep -l '!Q\.' -- '*.hs' | xargs sed -i 's/!Q\./!PG./g'
```
(Doing the `grep -l` before the `sed`, instead of `sed` on the entire codebase, reduces the number of `mtime` updates, and so reduces how many times a file gets recompiled while checking intermediate results.)

Finally, I manually removed a broken and unused `Arbitrary` instance in `Hasura.RQL.Network`. (It used an `import Test.QuickCheck.Arbitrary as Q` statement, which was erroneously caught by the first find-replace command.)

After this PR, `Q` is no longer used as an import qualifier. That was not the goal of this PR, but perhaps it's a useful fact for future efforts.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5933
GitOrigin-RevId: 8c84c59d57789111d40f5d3322c5a885dcfbf40e
2022-09-20 19:55:51 +00:00
..
Backends Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
Base Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
Cache server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Eventing Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
GraphQL Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
Incremental Data connector cache invalidations 2022-09-14 13:00:47 +00:00
Metadata Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
RQL Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
Server Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
SQL Data connector cache invalidations 2022-09-14 13:00:47 +00:00
Tracing server: support 128-bit trace ids 2022-09-20 02:50:06 +00:00
App.hs Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
EncJSON.hs Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
GC.hs server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
HTTP.hs Add Data Connector agent request logging, improve error messages, and add tracing support [GDW-83] 2022-07-11 08:05:40 +00:00
Incremental.hs Data connector cache invalidations 2022-09-14 13:00:47 +00:00
Logging.hs server: use metadata DB ID as ProjectID for EE lite projects 2022-09-15 09:13:56 +00:00
Name.hs Add schema implementation for Aggregation Predicates 2022-08-22 15:59:21 +00:00
QueryTags.hs server: support query tags for MSSQL data sources 2022-04-28 19:34:45 +00:00
Session.hs Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
Tracing.hs server: support 128-bit trace ids 2022-09-20 02:50:06 +00:00