2014-12-10 16:10:57 +01:00
|
|
|
name: servant-server
|
2015-07-27 22:26:49 +02:00
|
|
|
version: 0.5
|
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
|
|
|
|
.
|
2015-05-11 10:43:52 +02:00
|
|
|
You can learn about the basics in the <http://haskell-servant.github.io/tutorial 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>
|
2014-12-10 16:10:57 +01:00
|
|
|
homepage: http://haskell-servant.github.io/
|
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: Alp Mestanogullari, Sönke Hahn, Julian K. Arni
|
|
|
|
maintainer: alpmestan@gmail.com
|
|
|
|
copyright: 2014 Zalora South East Asia Pte Ltd
|
|
|
|
category: Web
|
|
|
|
build-type: Simple
|
|
|
|
cabal-version: >=1.10
|
|
|
|
tested-with: GHC >= 7.8
|
2015-01-04 16:22:28 +01:00
|
|
|
extra-source-files:
|
|
|
|
CHANGELOG.md
|
|
|
|
README.md
|
2015-07-09 23:34:21 +02:00
|
|
|
bug-reports: http://github.com/haskell-servant/servant/issues
|
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
|
|
|
|
2015-01-04 16:21:25 +01:00
|
|
|
|
2014-12-10 16:10:57 +01:00
|
|
|
library
|
|
|
|
exposed-modules:
|
|
|
|
Servant
|
|
|
|
Servant.Server
|
2014-12-19 18:15:21 +01:00
|
|
|
Servant.Server.Internal
|
2015-05-02 16:46:43 +02:00
|
|
|
Servant.Server.Internal.Enter
|
2015-06-01 19:38:51 +02:00
|
|
|
Servant.Server.Internal.PathInfo
|
|
|
|
Servant.Server.Internal.Router
|
|
|
|
Servant.Server.Internal.RoutingApplication
|
|
|
|
Servant.Server.Internal.ServantErr
|
2014-12-10 16:10:57 +01:00
|
|
|
Servant.Utils.StaticFiles
|
|
|
|
build-depends:
|
2015-01-13 20:40:41 +01:00
|
|
|
base >= 4.7 && < 5
|
2015-08-06 20:40:18 +02:00
|
|
|
, aeson >= 0.7 && < 0.11
|
2015-05-27 15:19:30 +02:00
|
|
|
, attoparsec >= 0.12 && < 0.14
|
2015-01-13 20:40:41 +01:00
|
|
|
, bytestring >= 0.10 && < 0.11
|
2015-05-29 17:16:36 +02:00
|
|
|
, containers >= 0.5 && < 0.6
|
2015-10-07 23:38:47 +02:00
|
|
|
, http-api-data
|
2015-01-13 20:40:41 +01:00
|
|
|
, http-types >= 0.8 && < 0.9
|
|
|
|
, network-uri >= 2.6 && < 2.7
|
2015-05-02 16:46:43 +02:00
|
|
|
, mtl >= 2 && < 3
|
|
|
|
, mmorph >= 1
|
2015-06-23 10:34:20 +02:00
|
|
|
, network >= 2.6 && < 2.7
|
2015-01-13 20:40:41 +01:00
|
|
|
, safe >= 0.3 && < 0.4
|
2015-07-27 22:26:49 +02:00
|
|
|
, servant == 0.5.*
|
2015-01-13 20:40:41 +01:00
|
|
|
, split >= 0.2 && < 0.3
|
2015-06-04 15:09:01 +02:00
|
|
|
, string-conversions >= 0.3 && < 0.5
|
2015-01-13 20:40:41 +01:00
|
|
|
, system-filepath >= 0.4 && < 0.5
|
2015-05-16 00:03:48 +02:00
|
|
|
, filepath >= 1
|
2015-01-13 20:40:41 +01:00
|
|
|
, text >= 1.2 && < 1.3
|
|
|
|
, transformers >= 0.3 && < 0.5
|
2015-09-12 15:28:20 +02:00
|
|
|
, transformers-compat>= 0.4
|
2015-01-13 20:40:41 +01:00
|
|
|
, wai >= 3.0 && < 3.1
|
2015-05-16 00:03:48 +02:00
|
|
|
, wai-app-static >= 3.0 && < 3.2
|
2015-07-23 13:31:37 +02:00
|
|
|
, warp >= 3.0 && < 3.2
|
2015-06-23 10:34:20 +02:00
|
|
|
|
2014-12-10 16:10:57 +01:00
|
|
|
hs-source-dirs: src
|
|
|
|
default-language: Haskell2010
|
|
|
|
ghc-options: -Wall
|
|
|
|
|
|
|
|
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
|
|
|
|
ghc-options:
|
|
|
|
-Wall -fno-warn-name-shadowing -fno-warn-missing-signatures
|
|
|
|
default-language: Haskell2010
|
|
|
|
hs-source-dirs: test
|
|
|
|
main-is: Spec.hs
|
2015-09-23 18:26:05 +02:00
|
|
|
other-modules:
|
|
|
|
Servant.Server.Internal.EnterSpec
|
|
|
|
Servant.ServerSpec
|
|
|
|
Servant.Utils.StaticFilesSpec
|
2014-12-10 16:10:57 +01:00
|
|
|
build-depends:
|
|
|
|
base == 4.*
|
|
|
|
, aeson
|
|
|
|
, bytestring
|
2015-04-13 15:13:55 +02:00
|
|
|
, bytestring-conversion
|
2014-12-10 16:10:57 +01:00
|
|
|
, directory
|
|
|
|
, exceptions
|
|
|
|
, hspec == 2.*
|
|
|
|
, hspec-wai
|
|
|
|
, http-types
|
|
|
|
, network >= 2.6
|
|
|
|
, QuickCheck
|
|
|
|
, parsec
|
|
|
|
, servant
|
2014-12-10 16:39:40 +01:00
|
|
|
, servant-server
|
2014-12-10 16:10:57 +01:00
|
|
|
, string-conversions
|
|
|
|
, temporary
|
|
|
|
, text
|
|
|
|
, transformers
|
2015-09-12 15:28:20 +02:00
|
|
|
, transformers-compat
|
2015-05-02 16:46:43 +02:00
|
|
|
, mtl
|
2014-12-10 16:10:57 +01:00
|
|
|
, wai
|
|
|
|
, wai-extra
|
|
|
|
, warp
|
2015-05-03 01:27:48 +02:00
|
|
|
|
|
|
|
test-suite doctests
|
|
|
|
build-depends: base
|
|
|
|
, servant
|
|
|
|
, doctest
|
|
|
|
, filemanip
|
2015-05-14 13:47:39 +02:00
|
|
|
, directory
|
|
|
|
, filepath
|
2015-05-03 01:27:48 +02:00
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: test/Doctests.hs
|
|
|
|
buildable: True
|
|
|
|
default-language: Haskell2010
|
|
|
|
ghc-options: -threaded
|