2014-10-21 15:25:34 +02:00
|
|
|
name: servant
|
2018-07-04 21:59:43 +02:00
|
|
|
version: 0.14.1
|
2014-12-10 16:11:57 +01:00
|
|
|
synopsis: A family of combinators for defining webservices APIs
|
2014-12-08 10:56:02 +01:00
|
|
|
description:
|
|
|
|
A family of combinators for defining webservices APIs and serving them
|
|
|
|
.
|
2016-04-21 12:22:54 +02:00
|
|
|
You can learn about the basics in the <http://haskell-servant.readthedocs.org/en/stable/tutorial/index.html tutorial>.
|
2014-12-08 10:56:02 +01:00
|
|
|
.
|
2015-04-20 16:00:51 +02:00
|
|
|
<https://github.com/haskell-servant/servant/blob/master/servant/CHANGELOG.md CHANGELOG>
|
2016-04-21 12:22:54 +02:00
|
|
|
homepage: http://haskell-servant.readthedocs.org/
|
2014-12-08 10:56:02 +01:00
|
|
|
Bug-reports: http://github.com/haskell-servant/servant/issues
|
2014-10-21 15:25:34 +02:00
|
|
|
license: BSD3
|
|
|
|
license-file: LICENSE
|
2016-01-20 16:58:29 +01:00
|
|
|
author: Servant Contributors
|
|
|
|
maintainer: haskell-servant-maintainers@googlegroups.com
|
|
|
|
copyright: 2014-2016 Zalora South East Asia Pte Ltd, Servant Contributors
|
2017-07-25 09:46:57 +02:00
|
|
|
category: Servant, Web
|
2017-01-16 08:06:22 +01:00
|
|
|
build-type: Custom
|
2014-10-21 15:25:34 +02:00
|
|
|
cabal-version: >=1.10
|
2017-10-22 11:59:10 +02:00
|
|
|
tested-with:
|
|
|
|
GHC==7.8.4
|
|
|
|
GHC==7.10.3
|
|
|
|
GHC==8.0.2
|
2017-12-10 12:29:37 +01:00
|
|
|
GHC==8.2.2
|
2018-06-01 12:42:34 +02:00
|
|
|
GHC==8.4.3
|
2016-04-16 15:51:38 +02:00
|
|
|
extra-source-files:
|
|
|
|
include/*.h
|
|
|
|
CHANGELOG.md
|
2014-12-08 10:56:02 +01:00
|
|
|
source-repository head
|
|
|
|
type: git
|
|
|
|
location: http://github.com/haskell-servant/servant.git
|
2014-10-21 15:25:34 +02:00
|
|
|
|
2017-01-16 08:06:22 +01:00
|
|
|
custom-setup
|
|
|
|
setup-depends:
|
2017-05-15 14:52:22 +02:00
|
|
|
base >= 4 && <5,
|
|
|
|
Cabal,
|
2018-06-18 15:28:51 +02:00
|
|
|
cabal-doctest >= 1.0.6 && <1.1
|
2017-01-16 08:06:22 +01:00
|
|
|
|
2014-10-21 15:25:34 +02:00
|
|
|
library
|
2014-10-25 01:27:39 +02:00
|
|
|
exposed-modules:
|
|
|
|
Servant.API
|
2014-11-07 04:58:41 +01:00
|
|
|
Servant.API.Alternative
|
2016-02-17 19:56:15 +01:00
|
|
|
Servant.API.BasicAuth
|
2014-10-25 01:27:39 +02:00
|
|
|
Servant.API.Capture
|
2015-01-08 16:24:19 +01:00
|
|
|
Servant.API.ContentTypes
|
2017-06-08 16:35:24 +02:00
|
|
|
Servant.API.Description
|
2017-05-16 10:18:16 +02:00
|
|
|
Servant.API.Empty
|
2016-03-06 22:23:55 +01:00
|
|
|
Servant.API.Experimental.Auth
|
2018-07-04 21:59:43 +02:00
|
|
|
Servant.API.Generic
|
2014-12-08 12:28:11 +01:00
|
|
|
Servant.API.Header
|
2015-06-23 10:34:20 +02:00
|
|
|
Servant.API.HttpVersion
|
2016-01-16 19:17:46 +01:00
|
|
|
Servant.API.Internal.Test.ComprehensiveAPI
|
2015-06-23 10:34:20 +02:00
|
|
|
Servant.API.IsSecure
|
2017-12-10 13:25:14 +01:00
|
|
|
Servant.API.Modifiers
|
2014-11-07 04:58:41 +01:00
|
|
|
Servant.API.QueryParam
|
2014-10-27 11:24:20 +01:00
|
|
|
Servant.API.Raw
|
2015-06-23 10:34:20 +02:00
|
|
|
Servant.API.RemoteHost
|
2014-11-07 04:58:41 +01:00
|
|
|
Servant.API.ReqBody
|
2015-04-13 15:12:33 +02:00
|
|
|
Servant.API.ResponseHeaders
|
2017-12-10 13:25:14 +01:00
|
|
|
Servant.API.Stream
|
2014-10-25 01:27:39 +02:00
|
|
|
Servant.API.Sub
|
2016-01-20 15:39:18 +01:00
|
|
|
Servant.API.TypeLevel
|
2015-06-23 10:34:20 +02:00
|
|
|
Servant.API.Vault
|
2015-11-27 02:05:34 +01:00
|
|
|
Servant.API.Verbs
|
2016-02-28 23:23:32 +01:00
|
|
|
Servant.API.WithNamedContext
|
2018-06-25 00:36:20 +02:00
|
|
|
Servant.Links
|
|
|
|
|
|
|
|
-- Deprecated modules, to be removed in late 2019
|
|
|
|
exposed-modules:
|
2014-11-07 09:58:53 +01:00
|
|
|
Servant.Utils.Links
|
2018-01-25 10:23:09 +01:00
|
|
|
|
|
|
|
-- Bundled with GHC: Lower bound to not force re-installs
|
|
|
|
-- text and mtl are bundled starting with GHC-8.4
|
|
|
|
--
|
|
|
|
-- note: mtl lower bound is so low because of GHC-7.8
|
2014-10-21 15:25:34 +02:00
|
|
|
build-depends:
|
2018-03-15 09:46:30 +01:00
|
|
|
base >= 4.7 && < 4.12
|
2018-01-25 10:23:09 +01:00
|
|
|
, bytestring >= 0.10.4.0 && < 0.11
|
2018-01-30 17:40:02 +01:00
|
|
|
, mtl >= 2.1 && < 2.3
|
2018-01-25 10:23:09 +01:00
|
|
|
, text >= 1.2.3.0 && < 1.3
|
2016-10-11 18:35:36 +02:00
|
|
|
|
|
|
|
if !impl(ghc >= 8.0)
|
|
|
|
build-depends:
|
2018-06-18 15:28:51 +02:00
|
|
|
semigroups >= 0.18.4 && < 0.19
|
2018-01-25 10:23:09 +01:00
|
|
|
|
|
|
|
-- Other dependencies: Lower bound around what is in the latest Stackage LTS.
|
|
|
|
-- Here can be exceptions if we really need features from the newer versions.
|
2018-04-09 11:26:35 +02:00
|
|
|
build-depends:
|
2018-06-18 15:28:51 +02:00
|
|
|
base-compat >= 0.10.1 && < 0.11
|
|
|
|
, aeson >= 1.3.1.1 && < 1.5
|
|
|
|
, attoparsec >= 0.13.2.2 && < 0.14
|
2018-01-25 10:23:09 +01:00
|
|
|
, case-insensitive >= 1.2.0.10 && < 1.3
|
2018-06-18 15:28:51 +02:00
|
|
|
, http-api-data >= 0.3.8.1 && < 0.4
|
|
|
|
, http-media >= 0.7.1.2 && < 0.8
|
|
|
|
, http-types >= 0.12.1 && < 0.13
|
|
|
|
, mmorph >= 1.1.2 && < 1.2
|
2018-01-25 10:23:09 +01:00
|
|
|
, tagged >= 0.8.5 && < 0.9
|
2018-06-18 15:28:51 +02:00
|
|
|
, singleton-bool >= 0.1.4 && < 0.2
|
2018-01-25 10:23:09 +01:00
|
|
|
, string-conversions >= 0.4.0.1 && < 0.5
|
|
|
|
, network-uri >= 2.6.1.0 && < 2.7
|
2018-06-18 15:28:51 +02:00
|
|
|
, vault >= 0.3.1.1 && < 0.4
|
2016-10-11 18:35:36 +02:00
|
|
|
|
2014-10-25 01:27:39 +02:00
|
|
|
hs-source-dirs: src
|
|
|
|
default-language: Haskell2010
|
2015-04-20 19:52:29 +02:00
|
|
|
other-extensions: CPP
|
|
|
|
, ConstraintKinds
|
2015-02-18 12:07:54 +01:00
|
|
|
, DataKinds
|
2015-02-18 10:00:34 +01:00
|
|
|
, DeriveDataTypeable
|
2015-02-18 12:07:54 +01:00
|
|
|
, FlexibleInstances
|
2015-02-18 10:00:34 +01:00
|
|
|
, FunctionalDependencies
|
2015-02-18 12:07:54 +01:00
|
|
|
, GADTs
|
2015-02-18 10:00:34 +01:00
|
|
|
, KindSignatures
|
|
|
|
, MultiParamTypeClasses
|
2015-02-18 12:07:54 +01:00
|
|
|
, OverlappingInstances
|
|
|
|
, OverloadedStrings
|
2015-02-18 10:00:34 +01:00
|
|
|
, PolyKinds
|
|
|
|
, QuasiQuotes
|
2015-02-18 12:07:54 +01:00
|
|
|
, RecordWildCards
|
2015-02-18 10:00:34 +01:00
|
|
|
, ScopedTypeVariables
|
|
|
|
, TemplateHaskell
|
|
|
|
, TypeFamilies
|
|
|
|
, TypeOperators
|
2015-02-18 12:07:54 +01:00
|
|
|
, TypeSynonymInstances
|
2015-02-18 10:00:34 +01:00
|
|
|
, UndecidableInstances
|
2014-12-08 10:56:02 +01:00
|
|
|
ghc-options: -Wall
|
2016-04-22 08:32:39 +02:00
|
|
|
if impl(ghc >= 8.0)
|
|
|
|
ghc-options: -Wno-redundant-constraints
|
2015-12-27 17:54:29 +01:00
|
|
|
include-dirs: include
|
2014-10-25 01:27:39 +02:00
|
|
|
|
2014-10-27 07:24:23 +01:00
|
|
|
test-suite spec
|
|
|
|
type: exitcode-stdio-1.0
|
2016-04-18 12:07:23 +02:00
|
|
|
ghc-options: -Wall
|
2014-10-27 07:24:23 +01:00
|
|
|
default-language: Haskell2010
|
2014-10-28 09:04:27 +01:00
|
|
|
hs-source-dirs: test
|
2014-10-27 07:24:23 +01:00
|
|
|
main-is: Spec.hs
|
2015-09-23 18:26:05 +02:00
|
|
|
other-modules:
|
|
|
|
Servant.API.ContentTypesSpec
|
|
|
|
Servant.API.ResponseHeadersSpec
|
2018-06-25 00:36:20 +02:00
|
|
|
Servant.LinksSpec
|
2018-01-25 10:23:09 +01:00
|
|
|
|
|
|
|
-- Dependencies inherited from the library. No need to specify bounds.
|
2014-10-27 07:24:23 +01:00
|
|
|
build-depends:
|
2018-01-25 10:23:09 +01:00
|
|
|
base
|
2016-05-11 10:51:39 +02:00
|
|
|
, base-compat
|
2015-02-20 01:07:36 +01:00
|
|
|
, aeson
|
2015-02-20 11:13:10 +01:00
|
|
|
, bytestring
|
2014-10-28 09:04:27 +01:00
|
|
|
, servant
|
2014-10-27 07:24:23 +01:00
|
|
|
, string-conversions
|
|
|
|
, text
|
2015-02-24 10:28:23 +01:00
|
|
|
|
2016-10-11 19:21:40 +02:00
|
|
|
if !impl(ghc >= 8.0)
|
|
|
|
build-depends:
|
2018-01-25 10:23:09 +01:00
|
|
|
semigroups
|
|
|
|
|
|
|
|
-- Additonal dependencies
|
|
|
|
build-depends:
|
2018-06-18 15:28:51 +02:00
|
|
|
aeson-compat >= 0.3.7.1 && < 0.4
|
|
|
|
, hspec >= 2.5.1 && < 2.6
|
|
|
|
, QuickCheck >= 2.11.3 && < 2.12
|
|
|
|
, quickcheck-instances >= 0.3.18 && < 0.4
|
2018-01-25 10:23:09 +01:00
|
|
|
|
|
|
|
build-tool-depends:
|
2018-06-18 15:28:51 +02:00
|
|
|
hspec-discover:hspec-discover >= 2.5.1 && < 2.6
|
2016-10-11 19:21:40 +02:00
|
|
|
|
2015-02-24 10:28:23 +01:00
|
|
|
test-suite doctests
|
2018-01-25 10:23:09 +01:00
|
|
|
build-depends:
|
|
|
|
base
|
|
|
|
, servant
|
2018-06-18 15:28:51 +02:00
|
|
|
, doctest >= 0.15.0 && <0.16
|
2018-01-25 10:23:09 +01:00
|
|
|
|
|
|
|
-- We test Links failure with doctest, so we need extra dependencies
|
|
|
|
build-depends:
|
2018-06-18 15:28:51 +02:00
|
|
|
hspec >= 2.5.1 && < 2.6
|
2018-01-25 10:23:09 +01:00
|
|
|
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: test/doctests.hs
|
|
|
|
buildable: True
|
|
|
|
default-language: Haskell2010
|
|
|
|
ghc-options: -Wall -threaded
|
|
|
|
if impl(ghc >= 8.2)
|
|
|
|
x-doctest-options: -fdiagnostics-color=never
|
|
|
|
include-dirs: include
|
|
|
|
x-doctest-source-dirs: test
|
2018-06-25 00:36:20 +02:00
|
|
|
x-doctest-modules: Servant.LinksSpec
|