servant-snap: A family of combinators for defining webservices APIs and serving them
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Interpret a Servant API as a Snap server, using any Snaplets you like.
You can learn about the basics of servant in the Servant tutorial, and about the basics of Snap at the Snaplets tutorial
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 Auth snaplet, another delegates to Heist.
[Skip to Readme]
Properties
Versions | 0.7, 0.7.0.1, 0.7.0.2, 0.7.0.3, 0.7.0.4, 0.7.0.5, 0.7.3, 0.8, 0.8.0.1, 0.8.1, 0.8.2, 0.8.2, 0.8.3, 0.8.3.1, 0.8.3.2, 0.8.4, 0.8.4.1, 0.8.5, 0.9.0 |
---|---|
Change log | CHANGELOG.md |
Dependencies | aeson (>=0.7 && <1.3), attoparsec (>=0.12 && <0.14), base (>=4.7 && <4.11), base64-bytestring (>=1.0 && <1.1), bytestring (>=0.10 && <0.11), case-insensitive (>=1.2 && <1.3), containers (>=0.5 && <0.6), either (>=4.3 && <4.6), errors, filepath (>=1 && <1.5), heist, http-api-data (>=0.2 && <0.4), http-client, http-media (>=0.7.1.2 && <0.8), http-types (>=0.8 && <0.13), io-streams (>=1.3 && <1.6), lens, map-syntax, mmorph (>=1 && <1.2), mtl (>=2.0 && <2.3), network-uri (>=2.6 && <2.7), servant (>=0.8 && <0.14), servant-client, servant-snap, snap (>=1.0 && <1.2), snap-core (>=1.0.2 && <1.2), snap-cors, snap-server (>=1.0 && <1.2), string-conversions (>=0.3 && <0.5), text (>=1.2 && <1.3), transformers (>=0.3 && <0.6), word8 (>=0.1 && <0.2) [details] |
License | BSD-3-Clause |
Copyright | 2014 Zalora South East Asia Pte Ltd |
Author | Alp Mestanogullari, Sönke Hahn, Julian K. Arni, Greg Hale |
Maintainer | alpmestan@gmail.com imalsogreg@gmail.com |
Category | Web |
Home page | http://haskell-servant.github.io/ |
Bug tracker | http://github.com/haskell-servant/servant-snap/issues |
Source repo | head: git clone http://github.com/haskell-servant/servant-snap.git |
Uploaded | by imalsogreg at 2018-07-21T16:45:04Z |
Modules
- Servant
- Servant.Server
- Servant.Server.Internal
- Servant.Server.Internal.BasicAuth
- Servant.Server.Internal.Context
- Servant.Server.Internal.PathInfo
- Servant.Server.Internal.Router
- Servant.Server.Internal.RoutingApplication
- Servant.Server.Internal.ServantErr
- Servant.Server.Internal.SnapShims
- Servant.Server.Internal
- Utils
- Servant.Utils.StaticFiles
- Servant.Server
Downloads
- servant-snap-0.8.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees