graphql-engine/server/src-test/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 Remove duplicated Data Connector API types 2022-09-20 06:20:25 +00:00
Base/Error server: Remove QErr and Code dependencies from the schema parsers. 2022-07-27 12:26:44 +00:00
Generator Rewrite ir generators 2022-04-05 22:09:40 +00:00
GraphQL server/postgres: Implement execution of aggregation predicates 2022-09-16 15:01:03 +00:00
Metadata/DTO server: codecs for TableMetadata, FunctionMetadata, and permissions 2022-09-12 20:31:07 +00:00
QuickCheck Remove or ignore all instances of unsafeMkName. 2022-07-18 17:02:15 +00:00
RQL server: adding a few code comments 2022-07-12 09:26:32 +00:00
Server Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
SQL server: Remove the Show instance from QErr and anything that touches it. 2022-07-01 11:48:26 +00:00
Tracing server: support 128-bit trace ids 2022-09-20 02:50:06 +00:00
AppSpec.hs Add forkIO and threadDelay errors to HLint. 2022-06-30 09:56:06 +00:00
EncJSONSpec.hs server: skip SOH header in FromCol EncJSON instance 2022-09-05 15:04:32 +00:00
EventingSpec.hs Remove RQL/Types.hs 2022-04-27 13:58:47 +00:00
EventTriggerCleanupSuite.hs Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00
IncrementalSpec.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
SessionSpec.hs server: Splits QuickCheck extension and orphan instance modules 2022-02-22 15:33:37 +00:00
StreamingSubscriptionSuite.hs Import pg-client-hs as PG 2022-09-20 19:55:51 +00:00