cabal-version:       2.0
name:                servant-hmac-auth
version:             0.0.0
description:         Servant authentication with HMAC
synopsis:            Servant authentication with HMAC
homepage:            https://github.com/holmusk/servant-hmac-auth
bug-reports:         https://github.com/holmusk/servant-hmac-auth/issues
license:             MIT
license-file:        LICENSE
author:              Holmusk
maintainer:          tech@holmusk.com
copyright:           2018 Holmusk
category:            Web, Cryptography
build-type:          Simple
extra-doc-files:     README.md
                   , CHANGELOG.md
tested-with:         GHC == 8.4.3

source-repository head
  type:                git
  location:            https://github.com/holmusk/servant-hmac-auth.git

library
  hs-source-dirs:      src
  exposed-modules:     Servant.Auth.Hmac
                           Servant.Auth.Hmac.Crypto
                           Servant.Auth.Hmac.Client
                           Servant.Auth.Hmac.Server

  build-depends:       base >= 4.11 && < 5
                     , base64-bytestring ^>= 1.0
                     , binary ^>= 0.8
                     , bytestring ^>= 0.10
                     , case-insensitive ^>= 1.2
                     , containers >= 0.5.7 && < 0.7
                     , cryptonite ^>= 0.25
                     , http-types ^>= 0.12
                     , http-client ^>= 0.5
                     , memory ^>= 0.14.14
                     , mtl ^>= 2.2.2
                     , servant ^>= 0.14.1
                     , servant-client ^>= 0.14
                     , servant-client-core ^>= 0.14.1
                     , servant-server ^>= 0.14.1
                     , transformers ^>= 0.5
                     , wai ^>= 3.2

  ghc-options:         -Wall
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wcompat
                       -Widentities
                       -Wredundant-constraints
                       -Wmissing-export-lists
                       -Wpartial-fields
                       -fhide-source-paths

  default-language:    Haskell2010
  default-extensions:  DeriveGeneric
                       GeneralizedNewtypeDeriving
                       LambdaCase
                       OverloadedStrings
                       RecordWildCards
                       ScopedTypeVariables
                       TypeApplications

test-suite servant-hmac-auth-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  ghc-options:         -Wall
                       -threaded
                       -rtsopts
                       -with-rtsopts=-N
                       -Wincomplete-uni-patterns
                       -Wincomplete-record-updates
                       -Wcompat
                       -Widentities
                       -Wredundant-constraints
                       -fhide-source-paths
                       -Wmissing-export-lists
                       -Wpartial-fields
  build-depends:       base
                     , servant-hmac-auth

  default-language:    Haskell2010
  default-extensions:  DeriveGeneric
                       GeneralizedNewtypeDeriving
                       LambdaCase
                       OverloadedStrings
                       RecordWildCards
                       ScopedTypeVariables
                       TypeApplications

executable readme
  main-is:             README.lhs
  build-depends:       base
                     , aeson ^>= 1.3
                     , http-client
                     , servant
                     , servant-hmac-auth
                     , servant-client
                     , servant-server
                     , warp ^>= 3.2
  build-tool-depends:  markdown-unlit:markdown-unlit
  ghc-options:         -Wall -pgmL markdown-unlit
  default-language:    Haskell2010