All Downloads are FREE. Search and download functionalities are using the official Maven repository.

haskell-http-client.haskell-http-client.cabal.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
name:           {{cabalPackage}}
version:        {{cabalVersion}}
synopsis:       Auto-generated {{cabalPackage}} API Client
description:    .
                Client library for calling the {{appName}} API based on http-client.
                .
                host: {{host}}
                .
                base path: {{basePath}}
                {{#version}}
                .
                {{appName}} API version: {{{.}}}
                {{/version}}
                .
                OpenAPI version: {{openApiVersion}}
                .
                {{^hideGenerationTimestamp}}
                Generated on: {{generatedDate}}
                .
                {{/hideGenerationTimestamp}}
                Generator version: {{generatorVersion}}
                .
category:       Web
homepage:       https://openapi-generator.tech
author:         Author Name Here
maintainer:     [email protected]
copyright:      YEAR - AUTHOR
license:        UnspecifiedLicense
build-type:     Simple
cabal-version:  >= 1.10

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

Flag UseKatip
  Description: Use the katip package to provide logging (if false, use the default monad-logger package)
  Default:     {{^x-useKatip}}False{{/x-useKatip}}{{#x-useKatip}}True{{/x-useKatip}}
  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.10.0
    , case-insensitive
    , containers >=0.5.0.0 && <0.8
    , deepseq >= 1.4 && <1.6
    , exceptions >= 0.4
    , http-api-data >= 0.3.4 && <0.6
    , http-client >=0.5 && <0.8
    , http-client-tls
    , http-media >= 0.4 && < 0.9
    , http-types >=0.8 && <0.13
    , iso8601-time >=0.1.3 && <0.2.0
    , microlens >= 0.4.3
    , mtl >=2.2.1
    , network >=2.6.2 && <3.9
    , random >=1.1
    , safe-exceptions <0.2
    , text >=0.11 && <3
    , time >=1.5
    , transformers >=0.4.0.0
    , unordered-containers
    , vector >=0.10.9 && <0.14
  other-modules:
      Paths_{{pathsName}}{{#x-hasImportMappings}}
      {{baseModule}}.ImportMappings{{/x-hasImportMappings}}
  exposed-modules:
      {{baseModule}}{{^x-allowNonUniqueOperationIds}}
      {{baseModule}}.API{{/x-allowNonUniqueOperationIds}}{{#apiInfo}}{{#apis}}
      {{baseModule}}.API.{{classname}}{{/apis}}{{/apiInfo}}
      {{baseModule}}.Client
      {{baseModule}}.Core
      {{baseModule}}.Logging
      {{baseModule}}.MimeTypes
      {{baseModule}}.Model{{#generateLenses}}
      {{baseModule}}.ModelLens{{/generateLenses}}{{#x-allUniqueImportPaths}}
      {{.}}{{/x-allUniqueImportPaths}}
  default-language: Haskell2010

  if flag(UseKatip)
      build-depends: katip >=0.8 && < 1.0
      other-modules: {{baseModule}}.LoggingKatip
      cpp-options: -DUSE_KATIP
  else
      build-depends: monad-logger >=0.3 && <0.4
      other-modules: {{baseModule}}.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:
      {{cabalPackage}}
    , 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{{#customTestInstanceModule}}
      {{.}}{{/customTestInstanceModule}}
  default-language: Haskell2010




© 2015 - 2024 Weber Informatics LLC | Privacy Policy