graphql-engine/server/src-lib/Hasura/SQL
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
..
AnyBackend.hs server: further improve anybackend module docs 2022-05-09 10:12:59 +00:00
Backend.hs Rename Data Wrapper to Data Connector [GDW-89] 2022-05-02 05:04:07 +00:00
BackendMap.hs Add Weeder, begin weeding (1/?) 2022-05-31 15:43:34 +00:00
GeoJSON.hs Yeet some default-extensions 2022-03-16 00:40:17 +00:00
Tag.hs Yeet some default-extensions 2022-03-16 00:40:17 +00:00
TH.hs Yeet some default-extensions 2022-03-16 00:40:17 +00:00
Time.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00
Types.hs Yeet some default-extensions 2022-03-16 00:40:17 +00:00
Value.hs server: add explicit export lists in OSS server and enforce with warning 2021-11-04 16:09:38 +00:00
WKT.hs server, pro: actually reformat the code-base using ormolu 2021-09-23 22:57:37 +00:00