git.iko.soy/typeable/servant
on hash-links help sign in
typeable/servant/servant-server/servant-server.cabal
190 lines 5.9 kB history raw
1name: servant-server
2version: 0.13
3synopsis: A family of combinators for defining webservices APIs and serving them
4description:
5 A family of combinators for defining webservices APIs and serving them
6 .
7 You can learn about the basics in the <http://haskell-servant.readthedocs.org/en/stable/tutorial/index.html tutorial>.
8 .
9 <https://github.com/haskell-servant/servant/blob/master/servant-server/example/greet.hs Here>
10 is a runnable example, with comments, that defines a dummy API and implements
11 a webserver that serves this API, using this package.
12 .
13 <https://github.com/haskell-servant/servant/blob/master/servant-server/CHANGELOG.md CHANGELOG>
14homepage: http://haskell-servant.readthedocs.org/
15Bug-reports: http://github.com/haskell-servant/servant/issues
16license: BSD3
17license-file: LICENSE
18author: Servant Contributors
19maintainer: haskell-servant-maintainers@googlegroups.com
20copyright: 2014-2016 Zalora South East Asia Pte Ltd, Servant Contributors
21category: Servant, Web
22build-type: Custom
23cabal-version: >=1.10
24tested-with:
25 GHC==7.8.4
26 GHC==7.10.3
27 GHC==8.0.2
28 GHC==8.2.2
29extra-source-files:
30 include/*.h
31 CHANGELOG.md
32 README.md
34source-repository head
35 type: git
36 location: http://github.com/haskell-servant/servant.git
38custom-setup
39 setup-depends:
40 base >= 4 && <5,
41 Cabal,
42 cabal-doctest >= 1.0.1 && <1.1
44library
45 exposed-modules:
46 Servant
47 Servant.Server
48 Servant.Server.Experimental.Auth
49 Servant.Server.Internal
50 Servant.Server.Internal.BasicAuth
51 Servant.Server.Internal.Context
52 Servant.Server.Internal.Handler
53 Servant.Server.Internal.Router
54 Servant.Server.Internal.RoutingApplication
55 Servant.Server.Internal.ServantErr
56 Servant.Utils.StaticFiles
58 -- Bundled with GHC: Lower bound to not force re-installs
59 -- text and mtl are bundled starting with GHC-8.4
60 --
61 -- note: mtl lower bound is so low because of GHC-7.8
62 build-depends:
63 base >= 4.7 && < 4.11
64 , bytestring >= 0.10.4.0 && < 0.11
65 , containers >= 0.5.5.1 && < 0.6
66 , mtl >= 2.1 && < 2.3
67 , text >= 1.2.3.0 && < 1.3
68 , transformers >= 0.3.0.0 && < 0.6
69 , filepath >= 1.3.0.2 && < 1.5
71 -- Servant dependencies
72 build-depends:
73 servant == 0.13.*
75 -- Other dependencies: Lower bound around what is in the latest Stackage LTS.
76 -- Here can be exceptions if we really need features from the newer versions.
77 build-depends:
78 aeson >= 1.2.3.0 && < 1.4
79 , base-compat >= 0.9.3 && < 0.10
80 , attoparsec >= 0.13.2.0 && < 0.14
81 , base64-bytestring >= 1.0.0.1 && < 1.1
82 , exceptions >= 0.8.3 && < 0.11
83 , http-api-data >= 0.3.7.1 && < 0.4
84 , http-media >= 0.7.1.1 && < 0.8
85 , http-types >= 0.12 && < 0.13
86 , network-uri >= 2.6.1.0 && < 2.7
87 , monad-control >= 1.0.0.4 && < 1.1
88 , network >= 2.6.3.2 && < 2.7
89 , safe >= 0.3.15 && < 0.4
90 , split >= 0.2.3.2 && < 0.3
91 , string-conversions >= 0.4.0.1 && < 0.5
92 , system-filepath >= 0.4 && < 0.5
93 , resourcet >= 1.1.9 && < 1.3
94 , tagged >= 0.8.5 && < 0.9
95 , transformers-base >= 0.4.4 && < 0.5
96 , transformers-compat >= 0.5.1 && < 0.6
97 , wai >= 3.2.1.1 && < 3.3
98 , wai-app-static >= 3.1.6.1 && < 3.2
99 , warp >= 3.2.13 && < 3.3
100 , word8 >= 0.1.3 && < 0.2
102 hs-source-dirs: src
103 default-language: Haskell2010
104 ghc-options: -Wall
105 if impl(ghc >= 8.0)
106 ghc-options: -Wno-redundant-constraints
107 include-dirs: include
109executable greet
110 main-is: greet.hs
111 hs-source-dirs: example
112 ghc-options: -Wall
113 default-language: Haskell2010
114 build-depends:
115 base
116 , servant
117 , servant-server
118 , aeson
119 , warp
120 , wai
121 , text
123test-suite spec
124 type: exitcode-stdio-1.0
125 ghc-options: -Wall
126 default-language: Haskell2010
127 hs-source-dirs: test
128 main-is: Spec.hs
129 other-modules:
130 Servant.ArbitraryMonadServerSpec
131 Servant.Server.ErrorSpec
132 Servant.Server.Internal.ContextSpec
133 Servant.Server.Internal.RoutingApplicationSpec
134 Servant.Server.RouterSpec
135 Servant.Server.StreamingSpec
136 Servant.Server.UsingContextSpec
137 Servant.Server.UsingContextSpec.TestCombinators
138 Servant.HoistSpec
139 Servant.ServerSpec
140 Servant.Utils.StaticFilesSpec
142 -- Dependencies inherited from the library. No need to specify bounds.
143 build-depends:
144 base
145 , base-compat
146 , aeson
147 , base64-bytestring
148 , bytestring
149 , exceptions
150 , http-types
151 , mtl
152 , network
153 , resourcet
154 , safe
155 , servant
156 , servant-server
157 , string-conversions
158 , text
159 , transformers
160 , transformers-compat
161 , wai
162 , warp
164 -- Additonal dependencies
165 build-depends:
166 directory >= 1.2.1.0 && < 1.4
167 , hspec >= 2.4.4 && < 2.5
168 , hspec-wai >= 0.9 && < 0.10
169 , should-not-typecheck >= 2.1.0 && < 2.2
170 , parsec >= 3.1.11 && < 3.2
171 , QuickCheck >= 2.10.1 && < 2.12
172 , wai-extra >= 3.0.21.0 && < 3.1
173 , temporary >= 1.2.0.3 && < 1.3
175 build-tool-depends:
176 hspec-discover:hspec-discover >=2.4.4 && <2.5
178test-suite doctests
179 build-depends:
180 base
181 , servant-server
182 , doctest >= 0.13.0 && <0.14
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
190 include-dirs: include