snap-core: Snap: A Haskell Web Framework (core interfaces and types)
Snap is a simple and fast web development framework and server written in Haskell. For more information or to download the latest version, you can visit the Snap project website at http://snapframework.com/.
This library contains the core definitions and types for the Snap framework, including:
Primitive types and functions for HTTP (requests, responses, cookies, post/query parameters, etc)
A monad for programming web handlers called "Snap", which allows:
Stateful access to the HTTP request and response objects
Monadic failure (i.e. MonadPlus/Alternative instances) for declining to handle requests and chaining handlers together
Early termination of the computation if you know early what you want to return and want to prevent further monadic processing
Quick start: The Snap
monad and HTTP definitions are in Snap.Core.
[Skip to Readme]
Modules
[Index]
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
portable | Compile in cross-platform mode. No platform-specific code or optimizations such as C routines will be used. | Disabled |
debug | Enable debug logging code. With this flag, Snap will
test the DEBUG environment variable to decide whether to do
logging, and this introduces a tiny amount of overhead
(a call into a function pointer) because the calls to | Disabled |
network-uri | Get Network.URI from the network-uri package | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- snap-core-1.0.2.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.1, 0.1.2, 0.2.1, 0.2.2, 0.2.3, 0.2.4, 0.2.5, 0.2.6, 0.2.7, 0.2.7.1, 0.2.8, 0.2.8.1, 0.2.9, 0.2.10, 0.2.11, 0.2.12, 0.2.13, 0.2.14, 0.2.15, 0.2.15.1, 0.2.16, 0.3.0, 0.3.1, 0.3.1.1, 0.4.0, 0.4.0.1, 0.4.0.2, 0.4.1, 0.4.2, 0.4.3, 0.5.0, 0.5.1, 0.5.1.1, 0.5.1.2, 0.5.1.3, 0.5.1.4, 0.5.2, 0.5.3, 0.5.3.1, 0.5.4, 0.5.5, 0.6.0, 0.6.0.1, 0.7, 0.7.0.1, 0.8.0, 0.8.0.1, 0.8.1, 0.9.0, 0.9.2, 0.9.2.1, 0.9.2.2, 0.9.3, 0.9.3.1, 0.9.4.0, 0.9.4.1, 0.9.5.0, 0.9.6.0, 0.9.6.1, 0.9.6.2, 0.9.6.3, 0.9.6.4, 0.9.7.0, 0.9.7.2, 0.9.8.0, 1.0.0.0, 1.0.1.0, 1.0.1.1, 1.0.2.0, 1.0.2.1, 1.0.3.0, 1.0.3.1, 1.0.3.2, 1.0.4.0, 1.0.4.1, 1.0.4.2, 1.0.5.0, 1.0.5.1 |
---|---|
Dependencies | attoparsec (>=0.12 && <0.14), base (>=4 && <4.11), bytestring (>=0.9 && <0.11), bytestring-builder (>=0.10.4 && <0.11), case-insensitive (>=1.1 && <1.3), containers (>=0.3 && <1.0), directory (>=1 && <2), filepath (>=1.1 && <2.0), hashable (>=1.2.0.6 && <1.3), HUnit (>=1.2 && <2), io-streams (>=1.3 && <1.5), lifted-base (>=0.1 && <0.3), monad-control (>=1.0 && <1.1), mtl (>=2.0 && <2.3), network (>=2.3 && <2.7), network-uri (>=2.5 && <2.7), old-locale (>=1 && <2), random (>=1 && <2), readable (>=0.1 && <0.4), regex-posix (>=0.95 && <1), text (>=0.11 && <1.3), time (>=1.0 && <1.9), time-locale-compat (>=0.1 && <0.2), transformers (>=0.3 && <0.6), transformers-base (>=0.4 && <0.5), unix-compat (>=0.3 && <0.5), unordered-containers (>=0.1.4.3 && <0.3), vector (>=0.6 && <0.13) [details] |
Tested with | ghc ==7.4.2, ghc ==7.6.3, ghc ==7.8.4, ghc ==7.10.3, ghc ==8.0.1 |
License | BSD-3-Clause |
Author | Snap Framework Authors (see CONTRIBUTORS) |
Maintainer | snap@snapframework.com |
Revised | Revision 2 made by HerbertValerioRiedel at 2018-08-21T17:42:27Z |
Category | Web, Snap, IO-Streams |
Home page | http://snapframework.com/ |
Bug tracker | https://github.com/snapframework/snap-core/issues |
Source repo | head: git clone git://github.com/snapframework/snap-core.git |
Uploaded | by GregoryCollins at 2017-03-25T20:41:23Z |
Distributions | Arch:1.0.5.1, Debian:1.0.4.2, Fedora:1.0.5.1, FreeBSD:0.9.7.2, LTSHaskell:1.0.5.1, NixOS:1.0.5.1, Stackage:1.0.5.1 |
Reverse Dependencies | 72 direct, 147 indirect [details] |
Downloads | 128223 total (437 in the last 30 days) |
Rating | 2.5 (votes: 5) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2017-03-25 [all 1 reports] |