graphql-engine/server/src-lib/Hasura
Tom Harding a3031aed03 Add Weeder, begin weeding (1/?)
## Description

This PR adds a config file for [`weeder`](https://github.com/ocharles/weeder) to the `-mono` repository. `weeder` checks for dead code by building a call graph from the given entry points (currently every module named `Main` with a `main` function) and then marking every function _not_ in that call graph as dead code.

To avoid very large PRs, I'm going to tackle this in a series. This first PR adds the basic configuration, plus removes as many weeds as it took for me to realise this was going to become a very big PR. The PRs after this will largely be removing dead code, until the final PR that will add Weeder to the CI pipeline.

### Related Issues

This closes #2973.

## Affected components

- Server

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4572
GitOrigin-RevId: ac8eaa9473e5ac1f16babcb35388694392d0d7dc
2022-05-31 15:43:34 +00:00
..
Backends server: extend backend_only setting for update and delete permissions 2022-05-31 14:42:14 +00:00
Base Add Weeder, begin weeding (1/?) 2022-05-31 15:43:34 +00:00
Cache server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Eventing server: refactor MaintenanceMode datatype 2022-04-28 20:56:11 +00:00
GraphQL server: extend backend_only setting for update and delete permissions 2022-05-31 14:42:14 +00:00
Incremental Make ForeignKey mappings non-empty 2022-05-10 15:44:46 +00:00
Metadata server: Clean up some deriving statements 2022-05-24 07:22:55 +00:00
RQL server: extend backend_only setting for update and delete permissions 2022-05-31 14:42:14 +00:00
Server Add unless/when related hints 2022-05-27 13:34:42 +00:00
SQL Add Weeder, begin weeding (1/?) 2022-05-31 15:43:34 +00:00
App.hs server: naming conventions for auto generated fields 2022-05-26 11:55:29 +00:00
EncJSON.hs Fix JSON encoding issue (fix hasura/graphql-engine#7543 and hasura/graphql-engine#8200) 2022-04-05 19:11:30 +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 server: http ip blocklist (closes #2449) 2022-02-25 13:30:57 +00:00
Incremental.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Logging.hs Yeet some default-extensions 2022-03-16 00:40:17 +00:00
Prelude.hs Add Weeder, begin weeding (1/?) 2022-05-31 15:43:34 +00:00
QueryTags.hs server: support query tags for MSSQL data sources 2022-04-28 19:34:45 +00:00
Session.hs Add remote relationships from remote schemas in schema parser generators 2022-03-14 16:22:50 +00:00
Tracing.hs server: Clean up some deriving statements 2022-05-24 07:22:55 +00:00