packages feed

servant-matrix-param-0.1: servant-matrix-param.cabal

name:           servant-matrix-param
version:        0.1
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

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.*
    exposed-modules:
        Servant.MatrixParam.AesonSpecs

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
  other-modules:
      Servant.MatrixParam.AesonSpecsSpec
      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