The snap-core package
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.
- Exposed modules use unallocated top-level names: Snap
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:
1. Primitive types and functions for HTTP (requests, responses, cookies, post/query parameters, etc)
2. 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]
|portable||Compile in cross-platform mode. No platform-specific code or optimizations such as C routines will be used.||Disabled||Automatic|
|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 'debug' cannot be inlined.||Disabled||Automatic|
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
- snap-core-184.108.40.206.tar.gz [browse] (Cabal source package)
- Package description (included in the package)
For package maintainers and hackage trustees