git.iko.soy/typeable/servant
on alp/servant.dev help sign in
typeable/servant/servant-server/servant-server.cabal
187 lines 5.8 kB history raw
1cabal-version: >=1.10
2name: servant-server
3version: 0.16
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: BSD3
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: Custom
26tested-with:
27 GHC ==8.0.2
28 || ==8.2.2
29 || ==8.4.4
30 || ==8.6.3
32extra-source-files:
33 CHANGELOG.md
34 README.md
36source-repository head
37 type: git
38 location: http://github.com/haskell-servant/servant.git
40custom-setup
41 setup-depends:
42 base >= 4 && <5,
43 Cabal,
44 cabal-doctest >= 1.0.6 && <1.1
46library
47 exposed-modules:
48 Servant
49 Servant.Server
50 Servant.Server.Experimental.Auth
51 Servant.Server.Generic
52 Servant.Server.Internal
53 Servant.Server.Internal.BasicAuth
54 Servant.Server.Internal.Context
55 Servant.Server.Internal.Delayed
56 Servant.Server.Internal.DelayedIO
57 Servant.Server.Internal.Handler
58 Servant.Server.Internal.Router
59 Servant.Server.Internal.RouteResult
60 Servant.Server.Internal.RoutingApplication
61 Servant.Server.Internal.ServerError
62 Servant.Server.StaticFiles
64 -- deprecated
65 exposed-modules:
66 Servant.Utils.StaticFiles
68 -- Bundled with GHC: Lower bound to not force re-installs
69 -- text and mtl are bundled starting with GHC-8.4
70 build-depends:
71 base >= 4.9 && < 4.13
72 , bytestring >= 0.10.8.1 && < 0.11
73 , containers >= 0.5.7.1 && < 0.7
74 , mtl >= 2.2.2 && < 2.3
75 , text >= 1.2.3.0 && < 1.3
76 , transformers >= 0.5.2.0 && < 0.6
77 , filepath >= 1.4.1.1 && < 1.5
79 -- Servant dependencies
80 -- strict dependency as we re-export 'servant' things.
81 build-depends:
82 servant >= 0.16 && < 0.17.1
83 , http-api-data >= 0.4 && < 0.4.1
85 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
86 -- Here can be exceptions if we really need features from the newer versions.
87 build-depends:
88 base-compat >= 0.10.5 && < 0.11
89 , base64-bytestring >= 1.0.0.1 && < 1.1
90 , exceptions >= 0.10.0 && < 0.11
91 , http-media >= 0.7.1.3 && < 0.8
92 , http-types >= 0.12.2 && < 0.13
93 , network-uri >= 2.6.1.0 && < 2.8
94 , monad-control >= 1.0.2.3 && < 1.1
95 , network >= 2.8 && < 3.1
96 , string-conversions >= 0.4.0.1 && < 0.5
97 , resourcet >= 1.2.2 && < 1.3
98 , tagged >= 0.8.6 && < 0.9
99 , transformers-base >= 0.4.5.2 && < 0.5
100 , wai >= 3.2.1.2 && < 3.3
101 , wai-app-static >= 3.1.6.2 && < 3.2
102 , word8 >= 0.1.3 && < 0.2
104 hs-source-dirs: src
105 default-language: Haskell2010
106 ghc-options: -Wall -Wno-redundant-constraints
108executable greet
109 main-is: greet.hs
110 hs-source-dirs: example
111 ghc-options: -Wall
112 default-language: Haskell2010
113 build-depends:
114 base
115 , base-compat
116 , servant
117 , servant-server
118 , wai
119 , text
121 build-depends:
122 aeson >= 1.4.1.0 && < 1.5
123 , warp >= 3.2.25 && < 3.3
125test-suite spec
126 type: exitcode-stdio-1.0
127 ghc-options: -Wall
128 default-language: Haskell2010
129 hs-source-dirs: test
130 main-is: Spec.hs
131 other-modules:
132 Servant.ArbitraryMonadServerSpec
133 Servant.Server.ErrorSpec
134 Servant.Server.Internal.ContextSpec
135 Servant.Server.Internal.RoutingApplicationSpec
136 Servant.Server.RouterSpec
137 Servant.Server.StaticFilesSpec
138 Servant.Server.StreamingSpec
139 Servant.Server.UsingContextSpec
140 Servant.Server.UsingContextSpec.TestCombinators
141 Servant.HoistSpec
142 Servant.ServerSpec
144 -- Dependencies inherited from the library. No need to specify bounds.
145 build-depends:
146 base
147 , base-compat
148 , base64-bytestring
149 , bytestring
150 , http-types
151 , mtl
152 , resourcet
153 , safe
154 , servant
155 , servant-server
156 , string-conversions
157 , text
158 , transformers
159 , transformers-compat
160 , wai
162 -- Additonal dependencies
163 build-depends:
164 aeson >= 1.4.1.0 && < 1.5
165 , directory >= 1.3.0.0 && < 1.4
166 , hspec >= 2.6.0 && < 2.8
167 , hspec-wai >= 0.9.0 && < 0.10
168 , QuickCheck >= 2.12.6.1 && < 2.13
169 , should-not-typecheck >= 2.1.0 && < 2.2
170 , temporary >= 1.3 && < 1.4
171 , wai-extra >= 3.0.24.3 && < 3.1
173 build-tool-depends:
174 hspec-discover:hspec-discover >= 2.6.0 && <2.8
176test-suite doctests
177 build-depends:
178 base
179 , servant-server
180 , doctest >= 0.16.0 && <0.17
181 type: exitcode-stdio-1.0
182 main-is: test/doctests.hs
183 buildable: True
184 default-language: Haskell2010
185 ghc-options: -Wall -threaded
186 if impl(ghc >= 8.2)
187 x-doctest-options: -fdiagnostics-color=never