graphql-engine/server/src-lib/Hasura/Backends/Postgres/Translate
Samir Talwar 342391f39d Upgrade Ormolu to v0.5.
This upgrades the version of Ormolu required by the HGE repository to v0.5.0.1, and reformats all code accordingly.

Ormolu v0.5 reformats code that uses infix operators. This is mostly useful, adding newlines and indentation to make it clear which operators are applied first, but in some cases, it's unpleasant. To make this easier on the eyes, I had to do the following:

* Add a few fixity declarations (search for `infix`)
* Add parentheses to make precedence clear, allowing Ormolu to keep everything on one line
* Rename `relevantEq` to `(==~)` in #6651 and set it to `infix 4`
* Add a few _.ormolu_ files (thanks to @hallettj for helping me get started), mostly for Autodocodec operators that don't have explicit fixity declarations

In general, I think these changes are quite reasonable. They mostly affect indentation.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6675
GitOrigin-RevId: cd47d87f1d089fb0bc9dcbbe7798dbceedcd7d83
2022-11-02 20:55:13 +00:00
..
Select Upgrade Ormolu to v0.5. 2022-11-02 20:55:13 +00:00
BoolExp.hs Upgrade Ormolu to v0.5. 2022-11-02 20:55:13 +00:00
Column.hs Upgrade Ormolu to v0.5. 2022-11-02 20:55:13 +00:00
Delete.hs server/nada: add unit test infrastructure for Postgres delete SQL generation 2022-08-11 10:46:49 +00:00
Insert.hs Upgrade Ormolu to v0.5. 2022-11-02 20:55:13 +00:00
Mutation.hs Upgrade Ormolu to v0.5. 2022-11-02 20:55:13 +00:00
Returning.hs Upgrade Ormolu to v0.5. 2022-11-02 20:55:13 +00:00
Select.hs server: minor nit-picks for the Postgres Select module split 2022-04-22 17:19:58 +00:00
Types.hs replace SELECT FROM with SELECT 1 FROM to fix count aggregates for cockroachdb 2022-09-22 13:58:03 +00:00
Update.hs server/nada: test mkUpdateCTE 2022-08-05 21:42:19 +00:00