mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
aa18f65217
It's about time. To do this I had to check a few more boxes. * I copied the flags from `graphql-engine.cabal` to the libraries in `server/lib`. * I moved `Cacheable` instances of schema parser types beside the typeclass declaration. * I removed imports of `Hasura.Prelude` from the tests, and rewrote them accordingly. * I copied the `TestMonad` parse monad into `server/src-test/Hasura/GraphQL/Schema/RemoteTest.hs`, which was using it. I think this could be done with the real thing, but I tried replacing it with constraints and it messed with my head somewhat. PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5311 GitOrigin-RevId: ebebcc50a16f2d517b7f730fe72410827ca3e86c
84 lines
1.5 KiB
YAML
84 lines
1.5 KiB
YAML
spec-version: 0.34.7
|
|
|
|
name: hasura-schema-parsers
|
|
description: >
|
|
Parsers built from GraphQL schemas.
|
|
|
|
_common: !include "../common.yaml"
|
|
<<: *common-boilerplate
|
|
<<: *common-lib
|
|
|
|
default-extensions:
|
|
- AllowAmbiguousTypes
|
|
- ApplicativeDo
|
|
- BangPatterns
|
|
- BlockArguments
|
|
- DataKinds
|
|
- DeriveFoldable
|
|
- DeriveFunctor
|
|
- DeriveLift
|
|
- DeriveGeneric
|
|
- DeriveTraversable
|
|
- DerivingStrategies
|
|
- ExplicitNamespaces
|
|
- FlexibleContexts
|
|
- FlexibleInstances
|
|
- FunctionalDependencies
|
|
- GADTs
|
|
- GeneralizedNewtypeDeriving
|
|
- ImportQualifiedPost
|
|
- KindSignatures
|
|
- LambdaCase
|
|
- MultiWayIf
|
|
- MultiParamTypeClasses
|
|
- NamedFieldPuns
|
|
- OverloadedStrings
|
|
- RankNTypes
|
|
- RecordWildCards
|
|
- ScopedTypeVariables
|
|
- StandaloneDeriving
|
|
- StrictData
|
|
- TupleSections
|
|
- TypeApplications
|
|
- TypeFamilies
|
|
- TypeOperators
|
|
|
|
library:
|
|
source-dirs:
|
|
- src
|
|
dependencies: &library-dependencies
|
|
- base
|
|
|
|
- aeson
|
|
- dependent-map
|
|
- dependent-sum
|
|
- graphql-parser
|
|
- hashable
|
|
- hasura-error-message
|
|
- insert-ordered-containers
|
|
- lens
|
|
- mtl
|
|
- scientific
|
|
- some
|
|
- template-haskell
|
|
- text
|
|
- th-lift
|
|
- unordered-containers
|
|
- uuid
|
|
- vector
|
|
- witherable
|
|
|
|
tests:
|
|
tests:
|
|
source-dirs:
|
|
- test
|
|
main: Main
|
|
dependencies:
|
|
- hasura-schema-parsers
|
|
- hspec
|
|
|
|
when:
|
|
# Merges the library dependencies with the above list, using `when:` to cheat.
|
|
- condition: true
|
|
dependencies: *library-dependencies
|