graphql-engine/server/lib/pg-client-hs
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
..
bench Clean up pg-client-hs 2022-10-07 11:56:55 +00:00
ci server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
src Upgrade Ormolu to v0.5. 2022-11-02 20:55:13 +00:00
test Remove some unnecessary OPTIONS_GHC pragmas 2022-10-07 17:27:08 +00:00
.gitignore server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
cabal.project server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
docker-compose.yml server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
LICENSE server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
Makefile server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
pg-client.cabal Clean up pg-client-hs 2022-10-07 11:56:55 +00:00
README.md server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
stack.yaml server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
stack.yaml.lock server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00
weeder.dhall server: import pg-client-hs with history 2022-09-14 14:51:34 +00:00

pg-client

build status

A low level Postgres client library for Haskell. Used at Hasura in various production projects.

Style

This repository follows the graphql-engine style guide. Use make format to run the formatter.