graphql-engine/server
Antoine Leblanc 07fd7324c3 server: enable StrictData by default (fix hasura/graphql-engine#3941)
## Description

Almost all our data structures use strictness annotations, following [our styleguide's principle](https://github.com/hasura/graphql-engine/blob/master/server/STYLE.md#dealing-with-laziness) of "by default, use strict data types and lazy functions". The very few cases where we actually need laziness were already explicitly labelled as lazy with the `~` prefix operator.

This PR simply globally enables `StrictData`, allowing us to express records without `!()` on every field, but makes no attempt at cleaning existing code.

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

Co-authored-by: Philip Lykke Carlsen <358550+plcplc@users.noreply.github.com>
GitOrigin-RevId: e65c6e2f89413188da250122f64c2173615946ec
2021-09-16 12:23:15 +00:00
..
bench-wrk server: generalize integration tests 2021-03-11 18:18:41 +00:00
benchmarks server benchmarks: fix running bench.sh locally in both modes; add missing --network=host in postgres container 2021-08-22 07:14:15 +00:00
documentation Add new documentation folder and two documentation files 2021-09-15 10:04:24 +00:00
packaging ci: create non-root user hasura in graphql engine docker images 2021-09-14 08:18:20 +00:00
src-exec server: remove the execute command from the graphql-engine 2021-09-08 13:07:18 +00:00
src-lib server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00
src-rsr tag release v2.0.9 2021-09-07 07:49:53 +00:00
src-test Request Transformations 2021-09-16 11:03:57 +00:00
tests-py Request Transformations 2021-09-16 11:03:57 +00:00
.dockerignore update packages (#251) 2018-08-08 13:10:13 +05:30
.gitignore server/citus: feature branch 2021-05-21 02:47:51 +00:00
.hlint.yaml ci: improve hlint messages 2021-05-04 21:52:55 +00:00
.stylish-haskell.yaml ci: run stylish haskell on all incoming PRs 2021-01-21 23:37:26 +00:00
cabal.project.ci update resource limits on circleci [force ci] 2021-01-29 14:36:07 +00:00
commit_diff.txt Rewrite GraphQL schema generation and query parsing (close #2801) (#4111) 2020-08-21 12:27:01 -05:00
CONTRIBUTING.md server: add a short note clarifying order of teardown functions 2021-08-24 09:20:13 +00:00
graphql-engine.cabal server: enable StrictData by default (fix hasura/graphql-engine#3941) 2021-09-16 12:23:15 +00:00
Makefile Combine oss and pro server configuration 2021-08-11 04:19:27 +00:00
Setup.hs move raven into graphql-engine repo 2018-06-28 00:32:00 +05:30
STYLE.md server: Add a Haskell style guide (#2175) 2020-04-08 02:31:30 -05:00