packages feed

httpstan-0.2.0.0: httpstan.cabal

name:           httpstan
version:        0.2.0.0
synopsis:       Auto-generated httpstan API Client
description:    .
                Client library for calling the httpstan API based on http-client.
                .
                host: localhost
                .
                base path: http://localhost
                .
                httpstan API version: 4.10.0
                .
                OpenAPI version: 3.0.1
                .
category:       Statistics
homepage:       https://github.com/jmcarthur/httpstan-hs
author:         Jake McArthur
maintainer:     Jake.McArthur@email.com
copyright:      2023 - Jake McArthur
license:        BSD3
license-files:  LICENSE
build-type:     Simple
cabal-version:  >= 1.10

extra-source-files:
    README.md
    openapi.yaml

source-repository head
    type: git
    location: git@github.com:jmcarthur/httpstan-hs.git

Flag UseKatip
  Description: Use the katip package to provide logging (if false, use the default monad-logger package)
  Default:     True
  Manual:      True

library
  hs-source-dirs:
      lib
  ghc-options: -Wall -funbox-strict-fields
  build-depends:
      aeson >=1.0 && <3.0
    , base >=4.7 && <5.0
    , base64-bytestring >1.0 && <2.0
    , bytestring >= 0.11.4 && < 0.12
    , case-insensitive >= 1.2.1 && < 1.3
    , containers >=0.5.0.0 && <0.8
    , deepseq >= 1.4 && <1.6
    , exceptions >= 0.10.4 && < 0.11
    , http-api-data >= 0.3.4 && <0.5
    , http-client >=0.5 && <0.8
    , http-client-tls >= 0.3.6 && < 0.4
    , http-media >= 0.4 && < 0.9
    , http-types >=0.8 && <0.13
    , iso8601-time >=0.1.3 && <0.2.0
    , microlens >= 0.4.13 && < 0.5
    , mtl >= 2.2.2 && < 2.3
    , network >=2.6.2 && <3.9
    , random >= 1.2.1 && < 1.3
    , safe-exceptions <0.2
    , text >=0.11 && <1.3
    , time >= 1.11.1 && < 1.12
    , transformers >= 0.5.6 && < 0.6
    , unordered-containers >= 0.2.19 && < 0.3
    , vector >=0.10.9 && <0.13

  other-modules:
      Paths_httpstan
  exposed-modules:
      Httpstan
      Httpstan.API
      Httpstan.API.ApiDefault
      Httpstan.Client
      Httpstan.Core
      Httpstan.Logging
      Httpstan.MimeTypes
      Httpstan.Model
      Httpstan.ModelLens
  default-language: Haskell2010

  if flag(UseKatip)
      build-depends: katip >=0.8 && < 1.0
      other-modules: Httpstan.LoggingKatip
      cpp-options: -DUSE_KATIP
  else
      build-depends: monad-logger >=0.3 && <0.4
      other-modules: Httpstan.LoggingMonadLogger
      cpp-options: -DUSE_MONAD_LOGGER

test-suite tests
  type: exitcode-stdio-1.0
  main-is: Test.hs
  hs-source-dirs:
      tests
  ghc-options: -Wall -fno-warn-orphans
  build-depends:
      httpstan
    , QuickCheck
    , aeson
    , base >=4.7 && <5.0
    , bytestring >=0.10.0
    , containers
    , hspec >=1.8
    , iso8601-time
    , mtl >=2.2.1
    , semigroups
    , text
    , time
    , transformers >=0.4.0.0
    , unordered-containers
    , vector
  other-modules:
      ApproxEq
      Instances
      PropMime
  default-language: Haskell2010