packages feed

twitchapi-0.0.3: twitchapi.cabal

name:                twitchapi
version:             0.0.3
synopsis:            Client access to Twitch.tv API endpoints
description:         Twitch.tv API client supporting Helix and PubSub
homepage:            https://github.com/wuest/haskell-twitchapi
bug-reports:         https://github.com/wuest/haskell-twitchapi/issues
license:             BSD3
license-file:        LICENSE
author:              Tina Wuest
maintainer:          tina@wuest.me
copyright:           2021-2022 Tina Wuest
category:            Web
build-type:          Simple
extra-source-files:  CHANGELOG.md
cabal-version:       >=1.10

source-repository head
  type: git
  location: https://github.com/wuest/haskell-twitchapi.git

library
  ghc-options:      -Wall -fwarn-implicit-prelude -fwarn-monomorphism-restriction -O2 -static
  default-language: Haskell2010
  default-extensions:   LambdaCase
                      , OverloadedStrings
  hs-source-dirs:   src

  exposed-modules:    Web.TwitchAPI.Helix.Bits
                    , Web.TwitchAPI.Helix.ChannelPoints
                    , Web.TwitchAPI.Helix.Request
                    , Web.TwitchAPI.Helix.Users
                    , Web.TwitchAPI.PubSub

  build-depends:      base            >= 4.11 && < 4.18
                    , aeson           >= 2.1  && < 2.2
                    , bytestring      >= 0.10 && < 0.12
                    , hoauth2         >= 1.16 && < 2.7
                    , http-client     >= 0.5  && < 0.8
                    , text            >= 1.2  && < 2.1
                    , time            >= 1.6  && < 1.14
                    , timerep         >= 2.0  && < 2.2
                    , uri-bytestring  >= 0.3  && < 0.4

test-suite pubsub
  ghc-options:      -threaded -rtsopts -with-rtsopts=-N -O2
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  hs-source-dirs:     test
                    , src
  main-is:          PubSub.hs
  other-modules:      Web.TwitchAPI.PubSub
  build-depends:      base            >= 4.11 && < 4.18
                    , QuickCheck      >= 2.8
                    , hspec           >= 2.7
                    , aeson           >= 2.1  && < 2.2
                    , bytestring      >= 0.10 && < 0.12
                    , text            >= 1.2  && < 2.1
                    , time            >= 1.6  && < 1.14
                    , timerep         >= 2.0  && < 2.2

test-suite helix
  ghc-options:      -threaded -rtsopts -with-rtsopts=-N -O2
  default-language: Haskell2010
  type:             exitcode-stdio-1.0
  hs-source-dirs:     test
                    , src
  main-is:          Helix.hs
  other-modules:      Web.TwitchAPI.Helix.Request
                    , Web.TwitchAPI.Helix.Users
                    , Helix.Users
  build-depends:      base            >= 4.11 && < 4.18
                    , QuickCheck      >= 2.8
                    , hspec           >= 2.7
                    , aeson           >= 2.1  && < 2.2
                    , bytestring      >= 0.10 && < 0.12
                    , text            >= 1.2  && < 2.1
                    , time            >= 1.6  && < 1.14
                    , timerep         >= 2.0  && < 2.2
                    , http-client     >= 0.5  && < 0.8