name:                servant-proto-lens
version:             0.1.0.3
synopsis:            Servant Content-Type for proto-lens protobuf modules.
description:         A type with instances for Accept, MimeRender, and MimeUnrender to use proto-lens protobuf modules with Servant APIs.
license:             BSD3
license-file:        LICENSE
author:              PLR
maintainer:          PLR
homepage:            https://github.com/plredmond/servant-proto-lens
bug-reports:         https://github.com/plredmond/servant-proto-lens/issues
category:            Web
build-type:          Simple
extra-source-files:  ChangeLog.md
cabal-version:       >=1.10

library
  hs-source-dirs:      src
  exposed-modules:     Servant.API.ContentTypes.Proto
  build-depends:       base >=4.8 && <5
                     , bytestring
                     , http-media
                     , proto-lens
                     , servant
  default-language:    Haskell2010

test-suite servant-proto-lens-test
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  main-is:             Spec.hs
  other-modules:       TestServer
                       TestClient
  build-depends:       base >=4.8 && <5
                     , HUnit
                     , async
                     , data-default-class
                     , http-client
                     , lens
                     , proto-lens
                     , proto-lens-protobuf-types
                     , servant-client
                     , servant-proto-lens
                     , servant-server
                     , test-framework
                     , test-framework-hunit
                     , warp
  ghc-options:         -threaded -rtsopts -with-rtsopts=-N1
  default-language:    Haskell2010