packages feed

graphql-client-1.2.2: graphql-client.cabal

cabal-version: >= 1.10

-- This file has been generated from package.yaml by hpack version 0.35.2.
--
-- see: https://github.com/sol/hpack

name:           graphql-client
version:        1.2.2
synopsis:       A client for Haskell programs to query a GraphQL API
description:    A client for Haskell programs to query a GraphQL API.
category:       Graphql
homepage:       https://github.com/brandonchinn178/graphql-client#readme
bug-reports:    https://github.com/brandonchinn178/graphql-client/issues
author:         Brandon Chinn <brandonchinn178@gmail.com>
maintainer:     Brandon Chinn <brandonchinn178@gmail.com>
license:        BSD3
license-file:   LICENSE.md
build-type:     Simple
extra-source-files:
    README.md
    CHANGELOG.md
    ./js/graphql-codegen-haskell.js
    ./js/graphql-codegen-haskell-fallback.js
    ./js/mocks/__utils.js
    ./js/mocks/websocket.js

source-repository head
  type: git
  location: https://github.com/brandonchinn178/graphql-client

library
  exposed-modules:
      Data.GraphQL
      Data.GraphQL.Bootstrap
      Data.GraphQL.Error
      Data.GraphQL.Monad
      Data.GraphQL.Monad.Class
      Data.GraphQL.Query
      Data.GraphQL.Result
      Data.GraphQL.TestUtils
  other-modules:
      Paths_graphql_client
  hs-source-dirs:
      src
  ghc-options: -Wall
  build-depends:
      aeson >=1.2.4.0 && <3
    , aeson-schemas >=1.3 && <1.5
    , base >=4.14 && <5
    , http-client >=0.5.13.1 && <0.8
    , http-client-tls >=0.3.5.3 && <0.4
    , http-types >=0.12.1 && <0.13
    , mtl >=2.2.2 && <2.4
    , template-haskell >=2.16 && <3
    , text >=1.2.3.0 && <2.1
    , transformers >=0.5.2.0 && <0.7
    , unliftio-core >=0.1.1.0 && <0.3
  default-language: Haskell2010
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wnoncanonical-monad-instances
  if impl(ghc < 8.8)
    ghc-options: -Wnoncanonical-monadfail-instances

executable graphql-codegen
  main-is: exe/Codegen.hs
  other-modules:
      Paths_graphql_client
  ghc-options: -Wall
  build-depends:
      base >=4.14 && <5
    , bytestring >=0.10.8.2 && <0.12
    , file-embed >=0.0.10.1 && <0.1
    , graphql-client
    , optparse-applicative >=0.14.2.0 && <0.19
    , path >=0.6.1 && <0.10
    , path-io >=1.3.3 && <2
    , template-haskell >=2.16 && <3
    , typed-process >=0.2.3.0 && <0.3
  default-language: Haskell2010
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wnoncanonical-monad-instances
  if impl(ghc < 8.8)
    ghc-options: -Wnoncanonical-monadfail-instances

test-suite graphql-client-test
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      Data.GraphQL.Test.Monad.Class
      Data.GraphQL.Test.TestQuery
      Data.GraphQL.Test.TestUtils
      Paths_graphql_client
  hs-source-dirs:
      test
  ghc-options: -Wall
  build-depends:
      aeson
    , aeson-schemas
    , base
    , graphql-client
    , mtl
    , tasty
    , tasty-hunit
  default-language: Haskell2010
  if impl(ghc >= 8.0)
    ghc-options: -Wcompat -Wincomplete-record-updates -Wincomplete-uni-patterns -Wnoncanonical-monad-instances
  if impl(ghc < 8.8)
    ghc-options: -Wnoncanonical-monadfail-instances