2022-09-27 10:20:46 +03:00
|
|
|
cabal-version: 3.0
|
|
|
|
name: dc-api
|
|
|
|
version: 1.0.0
|
|
|
|
extra-source-files:
|
2023-01-30 09:59:04 +03:00
|
|
|
test/Test/Data/Chinook.xml.gz
|
2022-09-27 10:20:46 +03:00
|
|
|
test/Test/Data/schema-tables.json
|
|
|
|
|
|
|
|
flag profiling
|
|
|
|
description: Configures the project to be profiling-compatible
|
|
|
|
default: False
|
|
|
|
manual: True
|
|
|
|
|
|
|
|
common common-all
|
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions:
|
|
|
|
BlockArguments
|
|
|
|
DataKinds
|
|
|
|
DeriveDataTypeable
|
|
|
|
DeriveFunctor
|
|
|
|
DeriveGeneric
|
|
|
|
DerivingStrategies
|
|
|
|
DerivingVia
|
|
|
|
FlexibleContexts
|
|
|
|
GADTs
|
|
|
|
GeneralizedNewtypeDeriving
|
|
|
|
ImportQualifiedPost
|
|
|
|
LambdaCase
|
|
|
|
MultiParamTypeClasses
|
|
|
|
NamedFieldPuns
|
|
|
|
OverloadedStrings
|
|
|
|
RankNTypes
|
|
|
|
RecordWildCards
|
|
|
|
ScopedTypeVariables
|
2022-12-05 05:14:40 +03:00
|
|
|
StandaloneDeriving
|
2022-10-06 02:23:49 +03:00
|
|
|
StrictData
|
2022-09-27 10:20:46 +03:00
|
|
|
TupleSections
|
|
|
|
TypeApplications
|
|
|
|
TypeFamilies
|
|
|
|
TypeOperators
|
2023-01-30 14:23:08 +03:00
|
|
|
ghc-options:
|
|
|
|
-- Taken from https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3
|
|
|
|
-Weverything
|
|
|
|
-Wno-missing-exported-signatures
|
|
|
|
-Wno-missing-import-lists
|
|
|
|
-Wno-missed-specialisations
|
|
|
|
-Wno-all-missed-specialisations
|
|
|
|
-Wno-unsafe
|
|
|
|
-Wno-safe
|
|
|
|
-Wno-missing-local-signatures
|
|
|
|
-Wno-monomorphism-restriction
|
|
|
|
-Wno-missing-kind-signatures
|
|
|
|
-Wno-missing-safe-haskell-mode
|
|
|
|
-- We want these warnings, but the code doesn't satisfy them yet:
|
|
|
|
-Wno-missing-deriving-strategies
|
2023-01-31 21:23:52 +03:00
|
|
|
-Wno-unused-packages
|
|
|
|
-Wno-partial-fields
|
|
|
|
-Wno-implicit-prelude
|
2022-09-27 10:20:46 +03:00
|
|
|
|
|
|
|
library
|
|
|
|
import: common-all
|
|
|
|
hs-source-dirs: src
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
aeson,
|
|
|
|
autodocodec,
|
|
|
|
autodocodec-openapi3,
|
|
|
|
base,
|
|
|
|
bytestring,
|
|
|
|
deepseq,
|
|
|
|
extra,
|
|
|
|
graphql-parser,
|
|
|
|
hashable,
|
|
|
|
insert-ordered-containers,
|
|
|
|
lens,
|
|
|
|
lens-aeson,
|
|
|
|
openapi3,
|
|
|
|
scientific,
|
|
|
|
servant,
|
|
|
|
servant-client,
|
|
|
|
servant-client-core,
|
|
|
|
servant-openapi3,
|
|
|
|
text,
|
|
|
|
unordered-containers,
|
|
|
|
http-media
|
|
|
|
|
|
|
|
if !flag(profiling)
|
|
|
|
-- ghc-heap-view can't be built with profiling
|
|
|
|
build-depends: ghc-heap-view
|
|
|
|
|
|
|
|
exposed-modules:
|
|
|
|
Autodocodec.Extended
|
|
|
|
Hasura.Backends.DataConnector.API
|
|
|
|
Hasura.Backends.DataConnector.API.V0
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Aggregate
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Capabilities
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Column
|
|
|
|
Hasura.Backends.DataConnector.API.V0.ConfigSchema
|
2022-10-11 03:25:07 +03:00
|
|
|
Hasura.Backends.DataConnector.API.V0.ErrorResponse
|
2022-09-27 10:20:46 +03:00
|
|
|
Hasura.Backends.DataConnector.API.V0.Expression
|
2022-11-29 06:35:20 +03:00
|
|
|
Hasura.Backends.DataConnector.API.V0.Mutations
|
2022-09-27 10:20:46 +03:00
|
|
|
Hasura.Backends.DataConnector.API.V0.OrderBy
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Query
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Explain
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Raw
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Relationships
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Scalar
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Schema
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Table
|
2023-01-17 08:47:40 +03:00
|
|
|
Hasura.Backends.DataConnector.API.V0.Dataset
|
2022-10-27 03:42:49 +03:00
|
|
|
other-modules:
|
|
|
|
Hasura.Backends.DataConnector.API.V0.Name
|
2022-09-27 10:20:46 +03:00
|
|
|
|
|
|
|
test-suite tests-dc-api
|
|
|
|
import: common-all
|
|
|
|
type: exitcode-stdio-1.0
|
2023-01-27 19:31:16 +03:00
|
|
|
build-tool-depends: hspec-discover:hspec-discover
|
2022-09-27 10:20:46 +03:00
|
|
|
build-depends:
|
|
|
|
Diff,
|
|
|
|
aeson,
|
2022-12-05 05:14:40 +03:00
|
|
|
aeson-pretty,
|
2022-09-27 10:20:46 +03:00
|
|
|
ansi-terminal,
|
|
|
|
autodocodec,
|
|
|
|
autodocodec-openapi3,
|
|
|
|
base,
|
|
|
|
bytestring,
|
|
|
|
case-insensitive,
|
2022-12-05 05:14:40 +03:00
|
|
|
containers,
|
2022-09-27 10:20:46 +03:00
|
|
|
data-fix,
|
|
|
|
deepseq,
|
|
|
|
dc-api,
|
2022-10-24 05:09:16 +03:00
|
|
|
directory,
|
2022-12-05 05:14:40 +03:00
|
|
|
exceptions,
|
2022-09-27 10:20:46 +03:00
|
|
|
file-embed,
|
2022-10-24 05:09:16 +03:00
|
|
|
filepath,
|
2022-12-05 05:14:40 +03:00
|
|
|
free,
|
2022-10-24 05:09:16 +03:00
|
|
|
graphql-parser,
|
2022-09-27 10:20:46 +03:00
|
|
|
hashable,
|
|
|
|
http-client,
|
2022-12-05 05:14:40 +03:00
|
|
|
http-types,
|
2022-09-27 10:20:46 +03:00
|
|
|
lens,
|
|
|
|
lens-aeson,
|
2022-12-05 05:14:40 +03:00
|
|
|
lifted-base,
|
|
|
|
monad-control,
|
2022-09-27 10:20:46 +03:00
|
|
|
mtl,
|
|
|
|
network-uri,
|
|
|
|
openapi3,
|
|
|
|
optparse-applicative,
|
|
|
|
scientific,
|
2022-12-05 05:14:40 +03:00
|
|
|
sandwich,
|
2022-09-27 10:20:46 +03:00
|
|
|
servant,
|
|
|
|
servant-client,
|
|
|
|
servant-client-core,
|
|
|
|
servant-openapi3,
|
|
|
|
text,
|
2022-10-24 05:09:16 +03:00
|
|
|
time,
|
2022-09-27 10:20:46 +03:00
|
|
|
unordered-containers,
|
2023-01-30 09:59:04 +03:00
|
|
|
uuid,
|
2022-09-27 10:20:46 +03:00
|
|
|
vector,
|
|
|
|
xml-conduit,
|
|
|
|
xml-lens,
|
|
|
|
yaml,
|
|
|
|
zlib
|
|
|
|
hs-source-dirs: test
|
|
|
|
-- Turning off optimizations is intentional; tests aren't
|
|
|
|
-- performance sensitive and waiting for compilation is a problem.
|
2023-01-19 07:21:11 +03:00
|
|
|
ghc-options: -O0 -threaded
|
2022-09-27 10:20:46 +03:00
|
|
|
main-is: Main.hs
|
|
|
|
other-modules:
|
|
|
|
Command
|
|
|
|
Paths_dc_api
|
2023-01-30 09:59:04 +03:00
|
|
|
Test.AgentAPI
|
2022-12-05 05:14:40 +03:00
|
|
|
Test.AgentClient
|
2023-01-30 09:59:04 +03:00
|
|
|
Test.AgentDatasets
|
|
|
|
Test.AgentTestContext
|
2022-09-27 10:20:46 +03:00
|
|
|
Test.Data
|
2022-10-24 05:09:16 +03:00
|
|
|
Test.DataExport
|
2022-09-27 10:20:46 +03:00
|
|
|
Test.Expectations
|
2022-12-05 05:14:40 +03:00
|
|
|
Test.HttpFile
|
|
|
|
Test.Specs.CapabilitiesSpec
|
|
|
|
Test.Specs.ErrorSpec
|
|
|
|
Test.Specs.ExplainSpec
|
|
|
|
Test.Specs.HealthSpec
|
|
|
|
Test.Specs.MetricsSpec
|
|
|
|
Test.Specs.QuerySpec
|
|
|
|
Test.Specs.QuerySpec.AggregatesSpec
|
|
|
|
Test.Specs.QuerySpec.BasicSpec
|
2022-12-08 09:48:21 +03:00
|
|
|
Test.Specs.QuerySpec.CustomOperatorsSpec
|
2022-12-05 05:14:40 +03:00
|
|
|
Test.Specs.QuerySpec.FilteringSpec
|
|
|
|
Test.Specs.QuerySpec.OrderBySpec
|
|
|
|
Test.Specs.QuerySpec.RelationshipsSpec
|
|
|
|
Test.Specs.SchemaSpec
|
|
|
|
Test.TestHelpers
|