2018-11-09 22:22:27 +01:00
|
|
|
cabal-version: >=1.10
|
2014-10-21 15:25:34 +02:00
|
|
|
name: servant
|
2018-11-09 18:04:47 +01:00
|
|
|
version: 0.15
|
2018-11-09 22:22:27 +01:00
|
|
|
|
2014-12-10 16:11:57 +01:00
|
|
|
synopsis: A family of combinators for defining webservices APIs
|
2018-11-09 22:22:27 +01:00
|
|
|
category: Servant, Web
|
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>
|
2018-11-09 22:22:27 +01:00
|
|
|
|
2016-04-21 12:22:54 +02:00
|
|
|
homepage: http://haskell-servant.readthedocs.org/
|
2018-11-09 22:22:27 +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
|
2018-11-09 22:22:27 +01:00
|
|
|
copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2018 Servant Contributors
|
2017-01-16 08:06:22 +01:00
|
|
|
build-type: Custom
|
2018-11-09 22:22:27 +01:00
|
|
|
|
2017-10-22 11:59:10 +02:00
|
|
|
tested-with:
|
2018-11-12 21:04:29 +01:00
|
|
|
GHC ==8.0.2
|
|
|
|
|| ==8.2.2
|
|
|
|
|| ==8.4.4
|
|
|
|
|| ==8.6.2
|
2018-11-09 22:22:27 +01:00
|
|
|
|
2016-04-16 15:51:38 +02:00
|
|
|
extra-source-files:
|
|
|
|
CHANGELOG.md
|
2018-06-26 19:11:28 +02:00
|
|
|
|
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
|
|
|
|
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-26 19:11:28 +02:00
|
|
|
|
|
|
|
-- Types
|
|
|
|
exposed-modules:
|
|
|
|
Servant.Types.SourceT
|
|
|
|
|
2018-11-06 12:32:36 +01:00
|
|
|
-- Test stuff
|
|
|
|
exposed-modules:
|
|
|
|
Servant.Test.ComprehensiveAPI
|
|
|
|
|
2018-06-26 19:11:28 +02:00
|
|
|
-- Safe links
|
|
|
|
exposed-modules:
|
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-11-06 12:32:36 +01:00
|
|
|
Servant.API.Internal.Test.ComprehensiveAPI
|
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-11-13 15:51:18 +01:00
|
|
|
base >= 4.9 && < 4.13
|
|
|
|
, bytestring >= 0.10.8.1 && < 0.11
|
|
|
|
, mtl >= 2.2.2 && < 2.3
|
|
|
|
, transformers >= 0.5.2.0 && < 0.6
|
|
|
|
, text >= 1.2.3.0 && < 1.3
|
2016-10-11 18:35:36 +02:00
|
|
|
|
2018-11-13 09:35:06 +01:00
|
|
|
|
|
|
|
-- We depend (heavily) on the API of these packages:
|
|
|
|
-- i.e. re-export, or allow using without direct dependency
|
|
|
|
build-depends:
|
2018-11-13 15:51:18 +01:00
|
|
|
http-api-data >= 0.4 && < 0.4.1
|
|
|
|
, singleton-bool >= 0.1.4 && < 0.1.5
|
2018-11-13 09:35:06 +01:00
|
|
|
|
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-26 19:11:28 +02:00
|
|
|
base-compat >= 0.10.5 && < 0.11
|
2018-11-09 18:04:47 +01:00
|
|
|
, aeson >= 1.4.1.0 && < 1.5
|
2018-06-18 15:28:51 +02:00
|
|
|
, attoparsec >= 0.13.2.2 && < 0.14
|
2018-06-26 19:11:28 +02:00
|
|
|
, bifunctors >= 5.5.3 && < 5.6
|
2018-07-10 16:17:44 +02:00
|
|
|
, case-insensitive >= 1.2.0.11 && < 1.3
|
2018-11-27 17:41:31 +01:00
|
|
|
, deepseq >= 1.4.2.0 && < 1.5
|
2018-11-09 18:04:47 +01:00
|
|
|
, http-media >= 0.7.1.3 && < 0.8
|
|
|
|
, http-types >= 0.12.2 && < 0.13
|
2018-06-18 15:28:51 +02:00
|
|
|
, mmorph >= 1.1.2 && < 1.2
|
2018-06-26 19:11:28 +02:00
|
|
|
, network-uri >= 2.6.1.0 && < 2.7
|
2018-11-09 22:22:27 +01:00
|
|
|
, QuickCheck >= 2.12.6.1 && <2.13
|
2018-01-25 10:23:09 +01:00
|
|
|
, string-conversions >= 0.4.0.1 && < 0.5
|
2018-11-09 18:04:47 +01:00
|
|
|
, tagged >= 0.8.6 && < 0.9
|
|
|
|
, vault >= 0.3.1.2 && < 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
|
2018-07-11 00:39:38 +02:00
|
|
|
ghc-options: -Wall -Wno-redundant-constraints
|
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-26 19:11:28 +02:00
|
|
|
Servant.API.StreamSpec
|
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
|
2018-11-10 00:20:57 +01:00
|
|
|
, mtl
|
2014-10-28 09:04:27 +01:00
|
|
|
, servant
|
2014-10-27 07:24:23 +01:00
|
|
|
, string-conversions
|
|
|
|
, text
|
2018-06-26 19:11:28 +02:00
|
|
|
, transformers
|
2015-02-24 10:28:23 +01:00
|
|
|
|
2018-01-25 10:23:09 +01:00
|
|
|
-- Additonal dependencies
|
|
|
|
build-depends:
|
2018-11-09 18:04:47 +01:00
|
|
|
hspec >= 2.6.0 && < 2.7
|
2018-10-25 22:16:16 +02:00
|
|
|
, QuickCheck >= 2.12.6.1 && < 2.13
|
|
|
|
, quickcheck-instances >= 0.3.19 && < 0.4
|
2018-01-25 10:23:09 +01:00
|
|
|
|
|
|
|
build-tool-depends:
|
2018-11-09 18:04:47 +01:00
|
|
|
hspec-discover:hspec-discover >= 2.6.0 && < 2.7
|
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-07-10 16:17:44 +02:00
|
|
|
, doctest >= 0.16.0 && <0.17
|
2018-01-25 10:23:09 +01:00
|
|
|
|
|
|
|
-- We test Links failure with doctest, so we need extra dependencies
|
|
|
|
build-depends:
|
2018-11-09 18:04:47 +01:00
|
|
|
hspec >= 2.6.0 && < 2.7
|
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
|
|
|
|
x-doctest-source-dirs: test
|
2018-06-25 00:36:20 +02:00
|
|
|
x-doctest-modules: Servant.LinksSpec
|