packages feed

servant-auth-hmac-0.1.0.0: servant-auth-hmac.cabal

name:                servant-auth-hmac
version:             0.1.0.0
synopsis:            Authentication via hashed message code (HMAC) based on RFC1945.
license:             BSD3
license-file:        LICENSE
author:              Al Zohali
maintainer:          Al Zohali <zohl@fmap.me>
-- copyright:
category:            Web
build-type:          Simple
cabal-version:       >=1.10

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

flag dev
  description:        Turn on development settings.
  manual:             True
  default:            False

library
  hs-source-dirs:  src
  exposed-modules:
    Servant.Server.Experimental.Auth.HMAC

  build-depends: base >= 4.7 && < 5.0
               , attoparsec >= 0.13.0 && < 0.14
               , base64-bytestring >= 1.0.0 && < 1.1
               , bytestring >= 0.10.8 && < 0.11
               , case-insensitive >= 1.2.0 && < 1.3
               , cryptonite >= 0.17 && < 0.20
               , data-default >= 0.7.1 && < 0.8
               , exceptions >= 0.8.3 && < 0.9
               , http-types >= 0.9.1 && < 0.10
               , memory >= 0.13 && < 0.14
               , servant >= 0.7.1 && < 0.8
               , servant-server >= 0.7.1 && < 0.8
               , string-class >= 0.1.6 && < 0.2
               , time >= 1.6.0 && < 1.7
               , transformers >= 0.5.2 && < 0.6
               , wai >= 3.2.1 && < 3.3
  default-language:    Haskell2010

  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall


executable example
  hs-source-dirs:     example/server
  main-is:            Example.hs
  build-depends: base >= 4.7 && < 5.0
               , aeson >= 0.11.2 && < 0.12
               , blaze-html >= 0.8.1 && < 0.9
               , blaze-markup >= 0.7.1 && < 0.8
               , bytestring >= 0.10.8 && < 0.11
               , cereal >= 0.5.3 && < 0.6
               , containers >= 0.5.7 && < 0.6
               , data-default >= 0.7.1 && < 0.8
               , mtl >= 2.2.1 && < 2.3
               , http-media >= 0.6.4 && < 0.7
               , random >= 1.1 && < 1.2
               , servant >= 0.7.1 && < 0.8
               , servant-auth-hmac
               , servant-blaze >= 0.7.1 && < 0.8
               , servant-server >= 0.7.1 && < 0.8
               , string-class >= 0.1.6 && < 0.2
               , text >= 1.2.2 && < 1.3
               , transformers >= 0.5.2 && < 0.6
               , unix >= 2.7.2 && < 2.8
               , wai >= 3.0 && < 3.3
               , warp >= 3.0.11 && < 3.3
  default-language:    Haskell2010

  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall


test-suite tests
  type:           exitcode-stdio-1.0

  hs-source-dirs: example/server
  main-is:        Test.hs

  build-depends: base >= 4.7 && < 5.0
               , aeson >= 0.11.2 && < 0.12
               , base64-bytestring >= 1.0.0 && < 1.1
               , bytestring >= 0.10.8 && < 0.11
               , case-insensitive >= 1.2.0 && < 1.3
               , cereal >= 0.5.3 && < 0.6
               , containers >= 0.5.7 && < 0.6
               , cryptonite >= 0.17 && < 0.20
               , data-default >= 0.7.1 && < 0.8
               , hspec-expectations
               , hspec-wai
               , hspec
               , http-types >= 0.9.1 && < 0.10
               , random >= 1.1 && < 1.2
               , servant >= 0.7.1 && < 0.8
               , servant-auth-hmac
               , servant-server >= 0.7.1 && < 0.8
               , string-class >= 0.1.6 && < 0.2
               , time >= 1.6.0 && < 1.7
               , transformers >= 0.5.2 && < 0.6
               , wai >= 3.2.1 && < 3.3
               , wai-extra
               , with-location

  default-language:    Haskell2010

  if flag(dev)
    ghc-options:      -Wall -Werror
  else
    ghc-options:      -O2 -Wall