graphql-engine/server/src-lib/Data
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
..
Aeson Added BackendConfig to allow sources to share configuration of Data Connectors [GDW-78] 2022-04-29 02:14:10 +00:00
GADT/Compare server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
HashMap/Strict Make ForeignKey mappings non-empty 2022-05-10 15:44:46 +00:00
IntMap/Strict Replace all occurrences of mapMaybe id by catMaybes. 2022-03-03 20:13:10 +00:00
List server/postgres: improve fetching tables' and functions' metadata (from database) 2022-03-08 13:03:14 +00:00
Parser server: Refresh JWKs maximum once per second 2022-01-28 00:18:56 +00:00
Sequence server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Set Extract generic containers from the codebase 2022-03-01 16:04:22 +00:00
Text server: naming conventions for auto generated fields 2022-05-26 11:55:29 +00:00
Time/Clock server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
URL server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Environment.hs Allows for mock env vars in test-webhook-transform endpoint 2021-12-09 07:59:46 +00:00
SqlCommenter.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
TByteString.hs Feature/webhook response transforms 2022-01-19 04:47:36 +00:00
Trie.hs Extract generic containers from the codebase 2022-03-01 16:04:22 +00:00