1
0
mirror of https://github.com/hasura/graphql-engine.git synced 2024-12-22 23:11:41 +03:00
graphql-engine/server/src-lib/Hasura/Base
Antoine Leblanc c5face545c Clean some instances
This PR:
- removes a dependency on Postgres' `ToSQL` in other backends
- removes some usage of `unsafePerformIO` in `FronJSON` / `Arbitrary`
- fixes a `Set` into a `HashSet`
- moves some orphan instances where they belong:
  - alongside others in `Hasura.Incremental` for `Cacheable`
  - in `Hasura.Base.Instances` for `Hashable`
- introduces a local wrapper around ByteString to avoid unsound UTF8 instances

Some of the weird empty lines come from the fact that this PR is an offshoot of .

https://github.com/hasura/graphql-engine-mono/pull/1949

GitOrigin-RevId: ef9d34452946f8466878d8fdda857b0b43816de7
2021-07-30 15:43:32 +00:00
..
Error.hs server: inherited roles improvements for select permissions only 2021-07-16 21:19:58 +00:00
Instances.hs Clean some instances 2021-07-30 15:43:32 +00:00
README.md server: introduce Hasura.Base (take 2) 2021-05-11 15:19:33 +00:00

Hasura.Base

This sub-module contains all code that has no internal dependency except for our custom Prelude: either libraries that are too Hasura-specific to be moved to a dedicated folder outside of Hasura, or type definitions that are used throughout the entire codebase.