-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathservant-snap.cabal
138 lines (134 loc) · 4.45 KB
/
servant-snap.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: servant-snap
version: 0.9.1
synopsis: A family of combinators for defining webservices APIs and serving them
description:
Interpret a Servant API as a Snap server, using any Snaplets you like.
.
You can learn about the basics of servant in the Servant <https://haskell-servant.readthedocs.io tutorial>, and about the basics of Snap at the Snaplets <http://snapframework.com/docs/tutorials/snaplets-tutorial tutorial>
.
<https://github.com/haskell-servant/servant-snap/blob/master/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. One route delegates to the <https://hackage.haskell.org/package/snap/docs/Snap-Snaplet-Auth.html Auth> snaplet, another delegates to <https://hackage.haskell.org/package/snap/docs/Snap-Snaplet-Heist.html Heist>.
.
<https://github.com/haskell-servant/servant-snap/blob/master/CHANGELOG.md CHANGELOG>
homepage: http://haskell-servant.github.io/
Bug-reports: http://github.com/haskell-servant/servant-snap/issues
license: BSD3
license-file: LICENSE
author: Alp Mestanogullari, Sönke Hahn, Julian K. Arni, Greg Hale
maintainer: [email protected] [email protected]
copyright: 2014 Zalora South East Asia Pte Ltd
category: Web
build-type: Simple
cabal-version: >=1.10
tested-with: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.10.7
extra-source-files:
CHANGELOG.md
README.md
source-repository head
type: git
location: http://github.com/haskell-servant/servant-snap.git
library
exposed-modules:
Servant
Servant.Server
Servant.Server.Internal
Servant.Server.Internal.PathInfo
Servant.Server.Internal.BasicAuth
Servant.Server.Internal.Context
Servant.Server.Internal.Router
Servant.Server.Internal.RoutingApplication
Servant.Server.Internal.ServantErr
Servant.Server.Internal.SnapShims
Servant.Utils.StaticFiles
build-depends:
base >= 4.7 && < 4.15
, aeson >= 0.7 && < 1.5
, attoparsec >= 0.12 && < 0.14
, base64-bytestring >= 1.0 && < 1.1
, bytestring >= 0.10 && < 0.11
, case-insensitive >= 1.2 && < 1.3
, containers >= 0.5 && < 0.7
, filepath >= 1 && < 1.5
, http-media >= 0.7.1.2 && < 0.9
, http-types >= 0.8 && < 0.13
, http-api-data >= 0.2 && < 0.5
, io-streams >= 1.3 && < 1.6
, network-uri >= 2.6 && < 2.7
, mtl >= 2.0 && < 2.3
, mmorph >= 1 && < 1.2
, servant >= 0.15 && < 0.19
, snap >= 1.0 && < 1.2
, snap-core >= 1.0 && < 1.1
, snap-server >= 1.0 && < 1.2
, string-conversions >= 0.3 && < 0.5
, tagged >= 0.8.5 && < 0.9
, text >= 1.2 && < 1.3
, transformers >= 0.3 && < 0.6
, word8 >= 0.1 && < 0.2
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
executable snap-greet
main-is: greet.hs
hs-source-dirs: example
ghc-options: -Wall
default-language: Haskell2010
build-depends:
aeson
, base
, bytestring
, errors
, heist
, lens
, servant
, servant-snap
, map-syntax
, snap
, snap-core
, snap-server
, text
, transformers
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
other-modules:
Servant.Utils.SnapTestUtils
Servant.ServerSpec
Servant.Server.CORSSpec
build-depends:
base == 4.*
, aeson
, base64-bytestring
, bytestring
, case-insensitive
, containers
, directory
, exceptions
, hspec >= 2.4.3 && < 2.8
, hspec-core >= 2.4.3 && < 2.8
, hspec-snap >= 1.0.1.0 && < 1.1
, io-streams
, lens
, process
, digestive-functors >= 0.8.4.0 && < 0.9
, time
, http-types
, HUnit >= 1.4
, mtl
, network >= 2.6
, QuickCheck
, parsec
, servant
, servant-snap
, snap
, snap-core
, snap-server
, string-conversions
, temporary
, text
, transformers