cabal-version:  2.2
name:           servant-auth-docs
version:        0.2.10.0
synopsis:       servant-docs/servant-auth compatibility
description:    This package provides instances that allow generating docs from
                <https://hackage.haskell.org/package/servant servant>
                APIs that use
                <https://hackage.haskell.org/package/servant-auth servant-auth's> @Auth@ combinator.
                .
                For a quick overview of the usage, see the <http://github.com/haskell-servant/servant/servant-auth#readme README>.
category:       Web, Servant, Authentication
homepage:       http://github.com/haskell-servant/servant/servant-auth#readme
bug-reports:    https://github.com/haskell-servant/servant/issues
author:         Julian K. Arni
maintainer:     jkarni@gmail.com
copyright:      (c) Julian K. Arni
license:        BSD-3-Clause
license-file:   LICENSE
tested-with:    GHC ==8.6.5 || ==8.8.4 || ==8.10.4 || ==9.0.1
build-type:     Custom
extra-source-files:
    CHANGELOG.md

custom-setup
  setup-depends:
    base, Cabal, cabal-doctest >=1.0.6 && <1.1

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

library
  hs-source-dirs:
      src
  default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
  ghc-options: -Wall
  build-depends:
      base         >= 4.10    && < 4.16
    , servant-docs >= 0.11.2  && < 0.13
    , servant      >= 0.13    && < 0.20
    , servant-auth == 0.4.*
    , lens         >= 4.16.1  && <5.2
  exposed-modules:
      Servant.Auth.Docs
  default-language: Haskell2010

test-suite doctests
  type:                exitcode-stdio-1.0
  main-is:             doctests.hs
  build-depends:
    base,
    servant-auth-docs,
    doctest             >= 0.16   && < 0.19,
    QuickCheck          >= 2.11.3 && < 2.15,
    template-haskell
  ghc-options:         -Wall -threaded
  hs-source-dirs:      test
  default-language:    Haskell2010

test-suite spec
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
      test
  default-extensions: ConstraintKinds DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances FunctionalDependencies GADTs KindSignatures MultiParamTypeClasses OverloadedStrings RankNTypes ScopedTypeVariables TypeFamilies TypeOperators
  ghc-options: -Wall
  build-tool-depends: hspec-discover:hspec-discover >=2.5.5 && <2.9

  -- dependencies with bounds inherited from the library stanza
  build-depends:
      base
    , text
    , servant-docs
    , servant
    , servant-auth
    , lens

  -- test dependencies
  build-depends:
      servant-auth-docs
    , hspec             >= 2.5.5  && < 2.9
    , QuickCheck        >= 2.11.3 && < 2.15

  default-language: Haskell2010