git.iko.soy/typeable/servant
on servant-client-0.16.0.1 help sign in
typeable/servant/servant-server/servant-server.cabal
189 lines 5.8 kB history raw
1cabal-version: >=1.10
2name: servant-server
3version: 0.16.2
4x-revision: 1
6synopsis: A family of combinators for defining webservices APIs and serving them
7category: Servant, Web
8description:
9 A family of combinators for defining webservices APIs and serving them
10 .
11 You can learn about the basics in the <http://docs.servant.dev/en/stable/tutorial/index.html tutorial>.
12 .
13 <https://github.com/haskell-servant/servant/blob/master/servant-server/example/greet.hs Here>
14 is a runnable example, with comments, that defines a dummy API and implements
15 a webserver that serves this API, using this package.
16 .
17 <https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md CHANGELOG>
19homepage: http://docs.servant.dev/
20bug-reports: http://github.com/haskell-servant/servant/issues
21license: BSD3
22license-file: LICENSE
23author: Servant Contributors
24maintainer: haskell-servant-maintainers@googlegroups.com
25copyright: 2014-2016 Zalora South East Asia Pte Ltd, 2016-2019 Servant Contributors
26build-type: Custom
27tested-with:
28 GHC ==8.0.2
29 || ==8.2.2
30 || ==8.4.4
31 || ==8.6.5
32 || ==8.8.1
34extra-source-files:
35 CHANGELOG.md
36 README.md
38source-repository head
39 type: git
40 location: http://github.com/haskell-servant/servant.git
42custom-setup
43 setup-depends:
44 base >= 4 && <5,
45 Cabal,
46 cabal-doctest >= 1.0.6 && <1.1
48library
49 exposed-modules:
50 Servant
51 Servant.Server
52 Servant.Server.Experimental.Auth
53 Servant.Server.Generic
54 Servant.Server.Internal
55 Servant.Server.Internal.BasicAuth
56 Servant.Server.Internal.Context
57 Servant.Server.Internal.Delayed
58 Servant.Server.Internal.DelayedIO
59 Servant.Server.Internal.Handler
60 Servant.Server.Internal.Router
61 Servant.Server.Internal.RouteResult
62 Servant.Server.Internal.RoutingApplication
63 Servant.Server.Internal.ServerError
64 Servant.Server.StaticFiles
66 -- deprecated
67 exposed-modules:
68 Servant.Utils.StaticFiles
70 -- Bundled with GHC: Lower bound to not force re-installs
71 -- text and mtl are bundled starting with GHC-8.4
72 build-depends:
73 base >= 4.9 && < 4.14
74 , bytestring >= 0.10.8.1 && < 0.11
75 , containers >= 0.5.7.1 && < 0.7
76 , mtl >= 2.2.2 && < 2.3
77 , text >= 1.2.3.0 && < 1.3
78 , transformers >= 0.5.2.0 && < 0.6
79 , filepath >= 1.4.1.1 && < 1.5
81 -- Servant dependencies
82 -- strict dependency as we re-export 'servant' things.
83 build-depends:
84 servant >= 0.16.2 && < 0.16.3
85 , http-api-data >= 0.4.1 && < 0.4.2
87 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
88 -- Here can be exceptions if we really need features from the newer versions.
89 build-depends:
90 base-compat >= 0.10.5 && < 0.12
91 , base64-bytestring >= 1.0.0.1 && < 1.1
92 , exceptions >= 0.10.0 && < 0.11
93 , http-media >= 0.7.1.3 && < 0.9
94 , http-types >= 0.12.2 && < 0.13
95 , network-uri >= 2.6.1.0 && < 2.8
96 , monad-control >= 1.0.2.3 && < 1.1
97 , network >= 2.8 && < 3.2
98 , string-conversions >= 0.4.0.1 && < 0.5
99 , resourcet >= 1.2.2 && < 1.3
100 , tagged >= 0.8.6 && < 0.9
101 , transformers-base >= 0.4.5.2 && < 0.5
102 , wai >= 3.2.1.2 && < 3.3
103 , wai-app-static >= 3.1.6.2 && < 3.2
104 , word8 >= 0.1.3 && < 0.2
106 hs-source-dirs: src
107 default-language: Haskell2010
108 ghc-options: -Wall -Wno-redundant-constraints
110executable greet
111 main-is: greet.hs
112 hs-source-dirs: example
113 ghc-options: -Wall
114 default-language: Haskell2010
115 build-depends:
116 base
117 , base-compat
118 , servant
119 , servant-server
120 , wai
121 , text
123 build-depends:
124 aeson >= 1.4.1.0 && < 1.5
125 , warp >= 3.2.25 && < 3.4
127test-suite spec
128 type: exitcode-stdio-1.0
129 ghc-options: -Wall
130 default-language: Haskell2010
131 hs-source-dirs: test
132 main-is: Spec.hs
133 other-modules:
134 Servant.ArbitraryMonadServerSpec
135 Servant.Server.ErrorSpec
136 Servant.Server.Internal.ContextSpec
137 Servant.Server.Internal.RoutingApplicationSpec
138 Servant.Server.RouterSpec
139 Servant.Server.StaticFilesSpec
140 Servant.Server.StreamingSpec
141 Servant.Server.UsingContextSpec
142 Servant.Server.UsingContextSpec.TestCombinators
143 Servant.HoistSpec
144 Servant.ServerSpec
146 -- Dependencies inherited from the library. No need to specify bounds.
147 build-depends:
148 base
149 , base-compat
150 , base64-bytestring
151 , bytestring
152 , http-types
153 , mtl
154 , resourcet
155 , safe
156 , servant
157 , servant-server
158 , string-conversions
159 , text
160 , transformers
161 , transformers-compat
162 , wai
164 -- Additonal dependencies
165 build-depends:
166 aeson >= 1.4.1.0 && < 1.5
167 , directory >= 1.3.0.0 && < 1.4
168 , hspec >= 2.6.0 && < 2.8
169 , hspec-wai >= 0.9.0 && < 0.10
170 , QuickCheck >= 2.12.6.1 && < 2.14
171 , should-not-typecheck >= 2.1.0 && < 2.2
172 , temporary >= 1.3 && < 1.4
173 , wai-extra >= 3.0.24.3 && < 3.1
175 build-tool-depends:
176 hspec-discover:hspec-discover >= 2.6.0 && <2.8
178test-suite doctests
179 build-depends:
180 base
181 , servant-server
182 , doctest >= 0.16.0 && <0.17
183 type: exitcode-stdio-1.0
184 main-is: test/doctests.hs
185 buildable: True
186 default-language: Haskell2010
187 ghc-options: -Wall -threaded
188 if impl(ghc >= 8.2)
189 x-doctest-options: -fdiagnostics-color=never