graphql-engine/server/src-lib/Hasura/GraphQL
Antoine Leblanc d91029ad51 [gardening] remove all traverse functions from RQL.IR
### Description

This PR removes all `fmapX` and `traverseX` functions from RQL.IR, favouring instead `Functor` and `Traversable` instances throughout the code. This was a relatively straightforward change, except for two small pain points: `AnnSelectG` and `AnnInsert`. Both were parametric over two types `a` and `v`, making it impossible to make them traversable functors... But it turns out that in every single use case, `a ~ f v`. By changing those types to take such an `f :: Type -> Type` as an argument instead of `a :: Type` makes it possible to make them functors.

The only small difference is for `AnnIns`, I had to introduce one `Identity` transformation for one of the `f` parameters. This is relatively straightforward.

### Notes

This PR fixes the most verbose BigQuery hint (`let` instead of `<- pure`).

https://github.com/hasura/graphql-engine-mono/pull/1668

GitOrigin-RevId: e632263a8c559aa04aeae10dcaec915b4a81ad1a
2021-07-08 15:42:53 +00:00
..
Execute [gardening] remove all traverse functions from RQL.IR 2021-07-08 15:42:53 +00:00
Parser Implement refresh parameter for Cached Directive 2021-06-17 06:28:45 +00:00
Schema [gardening] remove all traverse functions from RQL.IR 2021-07-08 15:42:53 +00:00
Transport [gardening] remove all traverse functions from RQL.IR 2021-07-08 15:42:53 +00:00
Context.hs server: IR for DB-DB joins 2021-06-17 23:13:05 +00:00
Execute.hs server: IR for DB-DB joins 2021-06-17 23:13:05 +00:00
Explain.hs server: IR for DB-DB joins 2021-06-17 23:13:05 +00:00
Logging.hs server: fix regression in query-log generation 2021-04-28 17:39:02 +00:00
ParameterizedQueryHash.hs server: log additional info in the livequery poller logs 2021-06-16 13:28:17 +00:00
Parser.hs server: introduce new custom scalars and remove offsetParser 2021-06-10 16:14:21 +00:00
RemoteServer.hs server: improve handling of HTTP client errors for remote schema calls 2021-07-07 10:15:05 +00:00
Schema.hs server: IR for DB-DB joins 2021-06-17 23:13:05 +00:00