cabal-version: >= 1.10

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

name:           github-rest
version:        1.1.1
synopsis:       Query the GitHub REST API programmatically
description:    Query the GitHub REST API programmatically, which can provide a more
                flexible and clear interface than if all of the endpoints and their types
                were defined as Haskell values.
category:       GitHub
homepage:       https://github.com/LeapYear/github-rest#readme
bug-reports:    https://github.com/LeapYear/github-rest/issues
author:         Brandon Chinn <brandon@leapyear.io>
maintainer:     Brandon Chinn <brandon@leapyear.io>
license:        BSD3
license-file:   LICENSE
build-type:     Simple
extra-source-files:
    README.md
    CHANGELOG.md
    test/goldens/gists-gist_id-sha-404.golden
    test/goldens/gists-gist_id-sha-422.golden
    test/goldens/gists-gist_id-sha.golden

source-repository head
  type: git
  location: https://github.com/LeapYear/github-rest

library
  exposed-modules:
      GitHub.REST
      GitHub.REST.Auth
      GitHub.REST.Endpoint
      GitHub.REST.KeyValue
      GitHub.REST.Monad
      GitHub.REST.Monad.Class
      GitHub.REST.PageLinks
  other-modules:
      Paths_github_rest
  hs-source-dirs:
      src
  ghc-options: -Wall
  build-depends:
      aeson >=1.1.2.0 && <2.1
    , base >=4.9 && <5
    , bytestring >=0.10.8.1 && <0.11
    , http-client >=0.5.13.1 && <0.8
    , http-client-tls >=0.3.5.3 && <0.4
    , http-types >=0.12.1 && <0.13
    , jwt >=0.9.0 && <0.11
    , mtl >=2.2.2 && <2.3
    , scientific >=0.3.6.2 && <0.4
    , text >=1.2.2.2 && <1.3
    , time >=1.8.0.2 && <1.10
    , transformers >=0.5.2.0 && <0.6
    , unliftio >=0.2.7.0 && <0.3
    , unliftio-core >=0.1.1.0 && <0.3
  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
  default-language: Haskell2010

test-suite github-rest-test
  type: exitcode-stdio-1.0
  main-is: Main.hs
  other-modules:
      Endpoint
      Helpers
      MockQuery
      PageLinks
      Query
      Paths_github_rest
  hs-source-dirs:
      test
  ghc-options: -Wall
  build-depends:
      aeson >=1.1.2.0 && <2.1
    , aeson-qq
    , base >=4.9 && <5
    , bytestring >=0.10.8.1 && <0.11
    , github-rest
    , http-client >=0.5.13.1 && <0.8
    , http-client-tls >=0.3.5.3 && <0.4
    , http-types >=0.12.1 && <0.13
    , jwt >=0.9.0 && <0.11
    , mtl >=2.2.2 && <2.3
    , scientific >=0.3.6.2 && <0.4
    , tasty
    , tasty-golden
    , tasty-hunit
    , tasty-quickcheck
    , text >=1.2.2.2 && <1.3
    , time >=1.8.0.2 && <1.10
    , transformers >=0.5.2.0 && <0.6
    , unliftio >=0.2.7.0 && <0.3
    , unliftio-core >=0.1.1.0 && <0.3
  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
  default-language: Haskell2010
