git.iko.soy/typeable/servant
on the-great-unification help sign in
typeable/servant/servant-server/servant-server.cabal
170 lines 5.5 kB history raw
1cabal-version: 2.2
2name: servant-server
3version: 0.19
5synopsis: A family of combinators for defining webservices APIs and serving them
6category: Servant, Web
7description:
8 A family of combinators for defining webservices APIs and serving them
9 .
10 You can learn about the basics in the <http://docs.servant.dev/en/stable/tutorial/index.html tutorial>.
11 .
12 <https://github.com/haskell-servant/servant/blob/master/servant-server/example/greet.hs Here>
13 is a runnable example, with comments, that defines a dummy API and implements
14 a webserver that serves this API, using this package.
15 .
16 <https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md CHANGELOG>
18homepage: http://docs.servant.dev/
19bug-reports: http://github.com/haskell-servant/servant/issues
20license: BSD-3-Clause
21license-file: LICENSE
22author: Servant Contributors
23maintainer: haskell-servant-maintainers@googlegroups.com
24copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
25build-type: Simple
26tested-with: GHC ==8.6.5 || ==8.8.4 || ==8.10.2 || ==9.0.1
28extra-source-files:
29 CHANGELOG.md
30 README.md
32source-repository head
33 type: git
34 location: http://github.com/haskell-servant/servant.git
36library
37 exposed-modules:
38 Servant
39 Servant.Server
40 Servant.Server.Experimental.Auth
41 Servant.Server.Generic
42 Servant.Server.Internal
43 Servant.Server.Internal.BasicAuth
44 Servant.Server.Internal.Context
45 Servant.Server.Internal.Delayed
46 Servant.Server.Internal.DelayedIO
47 Servant.Server.Internal.ErrorFormatter
48 Servant.Server.Internal.Handler
49 Servant.Server.Internal.RouteResult
50 Servant.Server.Internal.Router
51 Servant.Server.Internal.RoutingApplication
52 Servant.Server.Internal.ServerError
53 Servant.Server.StaticFiles
54 Servant.Server.UVerb
56 -- deprecated
57 exposed-modules:
58 Servant.Utils.StaticFiles
60 -- Bundled with GHC: Lower bound to not force re-installs
61 -- text and mtl are bundled starting with GHC-8.4
62 build-depends:
63 base >= 4.9 && < 4.16
64 , bytestring >= 0.10.8.1 && < 0.12
65 , constraints >= 0.2 && < 0.14
66 , containers >= 0.5.7.1 && < 0.7
67 , mtl >= 2.2.2 && < 2.3
68 , text >= 1.2.3.0 && < 1.3
69 , transformers >= 0.5.2.0 && < 0.6
70 , filepath >= 1.4.1.1 && < 1.5
72 -- Servant dependencies
73 -- strict dependency as we re-export 'servant' things.
74 build-depends:
75 servant >= 0.19
76 , http-api-data >= 0.4.1 && < 0.4.4
78 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
79 -- Here can be exceptions if we really need features from the newer versions.
80 build-depends:
81 base-compat >= 0.10.5 && < 0.12
82 , base64-bytestring >= 1.0.0.1 && < 1.3
83 , exceptions >= 0.10.0 && < 0.11
84 , http-media >= 0.7.1.3 && < 0.9
85 , http-types >= 0.12.2 && < 0.13
86 , network-uri >= 2.6.1.0 && < 2.8
87 , monad-control >= 1.0.2.3 && < 1.1
88 , network >= 2.8 && < 3.2
89 , sop-core >= 0.4.0.0 && < 0.6
90 , string-conversions >= 0.4.0.1 && < 0.5
91 , resourcet >= 1.2.2 && < 1.3
92 , tagged >= 0.8.6 && < 0.9
93 , transformers-base >= 0.4.5.2 && < 0.5
94 , wai >= 3.2.1.2 && < 3.3
95 , wai-app-static >= 3.1.6.2 && < 3.2
96 , word8 >= 0.1.3 && < 0.2
98 hs-source-dirs: src
99 default-language: Haskell2010
101 ghc-options: -Wall -Wno-redundant-constraints
103executable greet
104 main-is: greet.hs
105 hs-source-dirs: example
106 ghc-options: -Wall
107 default-language: Haskell2010
108 build-depends:
109 base
110 , base-compat
111 , servant
112 , servant-server
113 , wai
114 , text
116 build-depends:
117 aeson >= 1.4.1.0 && < 3
118 , warp >= 3.2.25 && < 3.4
120test-suite spec
121 type: exitcode-stdio-1.0
122 ghc-options: -Wall
123 default-language: Haskell2010
124 hs-source-dirs: test
125 main-is: Spec.hs
126 other-modules:
127 Servant.ArbitraryMonadServerSpec
128 Servant.Server.ErrorSpec
129 Servant.Server.Internal.ContextSpec
130 Servant.Server.Internal.RoutingApplicationSpec
131 Servant.Server.RouterSpec
132 Servant.Server.StaticFilesSpec
133 Servant.Server.StreamingSpec
134 Servant.Server.UsingContextSpec
135 Servant.Server.UsingContextSpec.TestCombinators
136 Servant.HoistSpec
137 Servant.ServerSpec
139 -- Dependencies inherited from the library. No need to specify bounds.
140 build-depends:
141 base
142 , base-compat
143 , base64-bytestring
144 , bytestring
145 , http-types
146 , mtl
147 , resourcet
148 , safe
149 , servant
150 , servant-server
151 , sop-core
152 , string-conversions
153 , text
154 , transformers
155 , transformers-compat
156 , wai
158 -- Additional dependencies
159 build-depends:
160 aeson >= 1.4.1.0 && < 3
161 , directory >= 1.3.0.0 && < 1.4
162 , hspec >= 2.6.0 && < 2.9
163 , hspec-wai >= 0.10.1 && < 0.12
164 , QuickCheck >= 2.12.6.1 && < 2.15
165 , should-not-typecheck >= 2.1.0 && < 2.2
166 , temporary >= 1.3 && < 1.4
167 , wai-extra >= 3.0.24.3 && < 3.2
169 build-tool-depends:
170 hspec-discover:hspec-discover >= 2.6.0 && <2.9