servant/servant-server/servant-server.cabal

198 lines
6 KiB
Text
Raw Normal View History

2014-12-10 16:10:57 +01:00
name: servant-server
2018-04-09 11:26:35 +02:00
version: 0.13.0.1
2014-12-10 16:10:57 +01:00
synopsis: A family of combinators for defining webservices APIs and serving them
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-10 16:10:57 +01:00
.
2015-04-20 15:55:41 +02:00
<https://github.com/haskell-servant/servant/blob/master/servant-server/example/greet.hs Here>
is a runnable example, with comments, that defines a dummy API and implements
a webserver that serves this API, using this package.
2015-04-20 16:00:51 +02:00
.
<https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md CHANGELOG>
2016-04-21 12:22:54 +02:00
homepage: http://haskell-servant.readthedocs.org/
2015-04-20 15:55:41 +02:00
Bug-reports: http://github.com/haskell-servant/servant/issues
2014-12-10 16:10:57 +01:00
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
2017-07-25 09:46:57 +02:00
category: Servant, Web
build-type: Custom
2014-12-10 16:10:57 +01: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
2015-01-04 16:22:28 +01:00
extra-source-files:
include/*.h
2015-01-04 16:22:28 +01:00
CHANGELOG.md
README.md
2014-12-10 16:10:57 +01:00
source-repository head
type: git
2015-07-09 23:34:21 +02:00
location: http://github.com/haskell-servant/servant.git
2014-12-10 16:10:57 +01:00
custom-setup
setup-depends:
2017-05-15 14:52:22 +02:00
base >= 4 && <5,
Cabal,
cabal-doctest >= 1.0.1 && <1.1
2015-01-04 16:21:25 +01:00
2014-12-10 16:10:57 +01:00
library
exposed-modules:
Servant
Servant.Server
2016-10-23 20:00:52 +02:00
Servant.Server.CombinatorUtils
Servant.Server.Experimental.Auth
Servant.Server.Internal
Servant.Server.Internal.BasicAuth
Servant.Server.Internal.Context
2017-01-16 10:44:25 +01:00
Servant.Server.Internal.Handler
Servant.Server.Internal.Router
Servant.Server.Internal.RoutingApplication
Servant.Server.Internal.ServantErr
2014-12-10 16:10:57 +01:00
Servant.Utils.StaticFiles
2018-01-25 12:49:39 +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
build-depends:
base >= 4.7 && < 4.11
, bytestring >= 0.10.4.0 && < 0.11
, containers >= 0.5.5.1 && < 0.6
, mtl >= 2.1 && < 2.3
, text >= 1.2.3.0 && < 1.3
, transformers >= 0.3.0.0 && < 0.6
, filepath >= 1.3.0.2 && < 1.5
2018-04-09 11:26:35 +02:00
if !impl(ghc >= 8.0)
build-depends:
semigroups >= 0.18.3 && < 0.19
2018-01-25 12:49:39 +01:00
-- Servant dependencies
build-depends:
2018-02-08 11:29:16 +01:00
servant == 0.13.*
2018-01-25 12:49:39 +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.
2014-12-10 16:10:57 +01:00
build-depends:
aeson >= 1.2.3.0 && < 1.4
2018-04-09 11:26:35 +02:00
, base-compat >= 0.9.3 && < 0.11
2018-01-25 12:49:39 +01:00
, attoparsec >= 0.13.2.0 && < 0.14
, base64-bytestring >= 1.0.0.1 && < 1.1
2018-03-13 11:07:44 +01:00
, exceptions >= 0.8.3 && < 0.11
2018-01-25 12:49:39 +01:00
, http-api-data >= 0.3.7.1 && < 0.4
, http-media >= 0.7.1.1 && < 0.8
, http-types >= 0.12 && < 0.13
2018-01-25 12:49:39 +01:00
, network-uri >= 2.6.1.0 && < 2.7
, monad-control >= 1.0.0.4 && < 1.1
, network >= 2.6.3.2 && < 2.7
, safe >= 0.3.15 && < 0.4
, split >= 0.2.3.2 && < 0.3
, string-conversions >= 0.4.0.1 && < 0.5
, system-filepath >= 0.4 && < 0.5
2018-02-08 10:01:28 +01:00
, resourcet >= 1.1.9 && < 1.3
2018-01-25 12:49:39 +01:00
, tagged >= 0.8.5 && < 0.9
, transformers-base >= 0.4.4 && < 0.5
, transformers-compat >= 0.5.1 && < 0.7
2018-01-25 12:49:39 +01:00
, wai >= 3.2.1.1 && < 3.3
, wai-app-static >= 3.1.6.1 && < 3.2
, warp >= 3.2.13 && < 3.3
, word8 >= 0.1.3 && < 0.2
2014-12-10 16:10:57 +01:00
hs-source-dirs: src
default-language: Haskell2010
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-12-10 16:10:57 +01:00
executable greet
main-is: greet.hs
hs-source-dirs: example
ghc-options: -Wall
default-language: Haskell2010
build-depends:
base
, servant
, servant-server
, aeson
, warp
, wai
, text
test-suite spec
type: exitcode-stdio-1.0
2016-04-18 12:07:23 +02:00
ghc-options: -Wall
2014-12-10 16:10:57 +01:00
default-language: Haskell2010
hs-source-dirs: test
main-is: Spec.hs
2015-09-23 18:26:05 +02:00
other-modules:
Servant.ArbitraryMonadServerSpec
2016-10-23 20:00:52 +02:00
Servant.Server.CombinatorUtilsSpec
2016-01-14 23:43:48 +01:00
Servant.Server.ErrorSpec
2016-02-28 23:23:32 +01:00
Servant.Server.Internal.ContextSpec
Servant.Server.Internal.RoutingApplicationSpec
Servant.Server.RouterSpec
2016-10-23 20:00:52 +02:00
Servant.ServerSpec
Servant.Server.StreamingSpec
2016-02-28 23:23:32 +01:00
Servant.Server.UsingContextSpec
Servant.Server.UsingContextSpec.TestCombinators
2017-11-07 13:12:19 +01:00
Servant.HoistSpec
Servant.ServerSpec
2015-09-23 18:26:05 +02:00
Servant.Utils.StaticFilesSpec
2018-01-25 12:49:39 +01:00
-- Dependencies inherited from the library. No need to specify bounds.
2014-12-10 16:10:57 +01:00
build-depends:
2018-01-25 12:49:39 +01:00
base
, base-compat
2014-12-10 16:10:57 +01:00
, aeson
2016-04-06 09:24:30 +02:00
, base64-bytestring
2014-12-10 16:10:57 +01:00
, bytestring
, exceptions
, http-types
2017-01-18 10:37:18 +01:00
, mtl
2018-01-25 12:49:39 +01:00
, network
2017-01-18 10:37:18 +01:00
, resourcet
, safe
2014-12-10 16:10:57 +01:00
, servant
2014-12-10 16:39:40 +01:00
, servant-server
2017-01-18 10:37:18 +01:00
, string-conversions
2014-12-10 16:10:57 +01:00
, text
, transformers
2015-09-12 15:28:20 +02:00
, transformers-compat
2014-12-10 16:10:57 +01:00
, wai
, warp
2015-05-03 01:27:48 +02:00
2018-01-25 12:49:39 +01:00
-- Additonal dependencies
build-depends:
directory >= 1.2.1.0 && < 1.4
, hspec >= 2.4.4 && < 2.6
2018-01-25 12:49:39 +01:00
, hspec-wai >= 0.9 && < 0.10
, should-not-typecheck >= 2.1.0 && < 2.2
, parsec >= 3.1.11 && < 3.2
, QuickCheck >= 2.10.1 && < 2.12
, wai-extra >= 3.0.21.0 && < 3.1
2018-04-11 08:52:50 +02:00
, temporary >= 1.2.0.3 && < 1.4
2018-01-25 12:49:39 +01:00
build-tool-depends:
hspec-discover:hspec-discover >=2.4.4 && <2.6
2018-01-25 12:49:39 +01:00
2015-05-03 01:27:48 +02:00
test-suite doctests
2018-01-25 12:49:39 +01:00
build-depends:
base
, servant-server
, doctest >= 0.13.0 && <0.16
2018-01-25 12:49:39 +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