packages feed

servant-0.5: servant.cabal

name:                servant
version:             0.5
synopsis:            A family of combinators for defining webservices APIs
description:
  A family of combinators for defining webservices APIs and serving them
  .
  You can learn about the basics in the <http://haskell-servant.github.io/tutorial tutorial>.
  .
  <https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md CHANGELOG>
homepage:            http://haskell-servant.github.io/
Bug-reports:         http://github.com/haskell-servant/servant/issues
license:             BSD3
license-file:        LICENSE
author:              Servant Contributors
maintainer:          haskell-servant-maintainers@googlegroups.com
copyright:           2014-2016 Zalora South East Asia Pte Ltd, Servant Contributors
category:            Web
build-type:          Simple
extra-source-files:  include/*.h
cabal-version:       >=1.10
tested-with:         GHC >= 7.8
source-repository head
  type: git
  location: http://github.com/haskell-servant/servant.git

library
  exposed-modules:
    Servant.API
    Servant.API.Alternative
    Servant.API.BasicAuth
    Servant.API.Capture
    Servant.API.ContentTypes
    Servant.API.Experimental.Auth
    Servant.API.Header
    Servant.API.HttpVersion
    Servant.API.Internal.Test.ComprehensiveAPI
    Servant.API.IsSecure
    Servant.API.QueryParam
    Servant.API.Raw
    Servant.API.RemoteHost
    Servant.API.ReqBody
    Servant.API.ResponseHeaders
    Servant.API.Sub
    Servant.API.Vault
    Servant.API.Verbs
    Servant.API.WithNamedContext
    Servant.Utils.Links
  build-depends:
      base >=4.7 && <5
    , base-compat >= 0.9
    , aeson >= 0.7
    , attoparsec >= 0.12
    , bytestring == 0.10.*
    , bytestring-conversion == 0.3.*
    , case-insensitive >= 1.2
    , http-api-data >= 0.1  && < 0.3
    , http-media >= 0.4 && < 0.7
    , http-types >= 0.8 && < 0.10
    , text >= 1 && < 2
    , string-conversions >= 0.3 && < 0.5
    , network-uri >= 2.6
    , vault >= 0.3 && <0.4
  hs-source-dirs: src
  default-language: Haskell2010
  other-extensions: CPP
                  , ConstraintKinds
                  , DataKinds
                  , DeriveDataTypeable
                  , FlexibleInstances
                  , FunctionalDependencies
                  , GADTs
                  , KindSignatures
                  , MultiParamTypeClasses
                  , OverlappingInstances
                  , OverloadedStrings
                  , PolyKinds
                  , QuasiQuotes
                  , RecordWildCards
                  , ScopedTypeVariables
                  , TemplateHaskell
                  , TypeFamilies
                  , TypeOperators
                  , TypeSynonymInstances
                  , UndecidableInstances
  ghc-options: -Wall
  include-dirs: include

test-suite spec
  type: exitcode-stdio-1.0
  ghc-options:
    -Wall -fno-warn-name-shadowing -fno-warn-missing-signatures
  default-language: Haskell2010
  hs-source-dirs: test
  main-is: Spec.hs
  other-modules:
      Servant.API.ContentTypesSpec
      Servant.API.ResponseHeadersSpec
      Servant.Utils.LinksSpec
  build-depends:
      base == 4.*
    , aeson
    , attoparsec
    , bytestring
    , hspec == 2.*
    , QuickCheck
    , quickcheck-instances
    , servant
    , string-conversions
    , text
    , url

test-suite doctests
 build-depends: base
              , servant
              , doctest
              , filemanip
              , directory
              , filepath
 type: exitcode-stdio-1.0
 main-is: test/Doctests.hs
 buildable: True
 default-language: Haskell2010
 ghc-options: -threaded
 include-dirs: include