packages feed

servant-matrix-param-0.2: servant-matrix-param.cabal

name:           servant-matrix-param
version:        0.2
synopsis:       Matrix parameter combinator for servant
description:    Matrix parameter combinator for servant
category:       Web
maintainer:     soenkehahn@gmail.com
license:        MIT
license-file:   LICENSE

build-type:     Simple
cabal-version:  >= 1.10

source-repository head
  type: git
  location: https://github.com/plow-technologies/servant-matrix-param

flag with-servant-aeson-specs
  description: support for servant-aeson-specs
  manual: True
  default: False

flag with-servant-server
  description: support for servant-server
  manual: True
  default: False

library
  default-language: Haskell2010
  ghc-options: -Wall
  hs-source-dirs:
      src
  build-depends:
      base < 5
    , servant == 0.5
  exposed-modules:
      Servant.MatrixParam
  if flag(with-servant-aeson-specs)
    build-depends:
        servant-aeson-specs == 0.2.* || == 0.3.* || == 0.4.*
    exposed-modules:
        Servant.MatrixParam.AesonSpecs
  if flag(with-servant-server)
    build-depends:
      servant-server == 0.5,
      containers,
      string-conversions,
      text
    exposed-modules:
      Servant.MatrixParam.Server
      Servant.MatrixParam.Server.Internal

test-suite spec
  default-language: Haskell2010
  ghc-options: -Wall
  type: exitcode-stdio-1.0
  main-is: Spec.hs
  hs-source-dirs:
      test
  build-depends:
      base < 5
    , hspec
    , servant == 0.5
    , servant-aeson-specs
    , servant-matrix-param
    , servant-server
    , wai
    , containers
    , text
    , wai-extra
    , http-types
    , bytestring
    , transformers
    , aeson
  other-modules:
      Servant.MatrixParam.AesonSpecsSpec
      Servant.MatrixParam.ServerSpec
      Servant.MatrixParamSpec

test-suite doctest
  default-language: Haskell2010
  ghc-options: -Wall
  type: exitcode-stdio-1.0
  main-is: Doctest.hs
  hs-source-dirs:
      test
  build-depends:
      base < 5
    , servant == 0.5
    , doctest