The snap-core package

[Tags: bsd3, library]

This is the first developer prerelease of the Snap framework. 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

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. Type aliases and helper functions for Iteratee I/O

3. A monad for programming web handlers called "Snap", inspired by happstack's (, which allows:

Quick start: The Snap monad and HTTP definitions are in Snap.Types, some iteratee utilities are in Snap.Iteratee.

Higher-level facilities for building web applications (like user/session management, component interfaces, data modeling, etc.) are planned but not yet implemented, so this release will mostly be of interest for those who:

[Skip to ReadMe]


Versions0.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.8,, 0.2.9, 0.2.10, 0.2.11, 0.2.12, 0.2.13, 0.2.14, 0.2.15,, 0.2.16, 0.3.0, 0.3.1,, 0.4.0,,, 0.4.1, 0.4.2, 0.4.3, 0.5.0, 0.5.1,,,,, 0.5.2, 0.5.3,, 0.5.4, 0.5.5, 0.6.0,, 0.7,, 0.8.0,, 0.8.1, 0.9.0, 0.9.2,,, 0.9.3,,,,,,,,,,,,
Change logNone available
Dependenciesattoparsec (>= && <0.9), base (==4.*), bytestring, bytestring-mmap (>=0.2.1 && <0.3), bytestring-nums, cereal (==0.2.*), containers, directory, directory-tree, dlist (==0.5.*), filepath, haskell98, iteratee (>=0.3.1 && <0.4), MonadCatchIO-transformers (>=0.2.1 && <0.3), monads-fd, old-locale, old-time, template-haskell, text (>=0.7.1 && <0.8), time, transformers, unix-compat, zlib [details]
AuthorJames Sanders, Shu-yu Guo, Gregory Collins, Doug Beardsley
Home page
Source repositoryhead: git clone
UploadedSun May 30 06:24:20 UTC 2010 by GregoryCollins
DistributionsDebian:, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:
Downloads38126 total (317 in last 30 days)
2 []
StatusDocs not available [build log]
All reported builds failed as of 2015-11-25 [all 4 reports]



debugEnable debug logging to stderrDisabledAutomatic
testsuiteAre we running the testsuite? Causes arguments to \"debug\" to be evaluated but not printed.DisabledAutomatic
portableCompile in cross-platform mode. No platform-specific code or optimizations such as C routines will be used.DisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees

Readme for snap-core-0.2.4

Snap Framework Core

This is the first developer prerelease of the Snap Framework Core library. For more information about Snap, read the or visit the Snap project website at

Snap is a nascent web framework for Haskell, based on iteratee I/O (as popularized by Oleg Kiselyov).

Library contents

This is the snap-core library, which contains:

Building snap-core

The snap-core library is built using Cabal and Hackage. Just run

cabal install

from the snap-core toplevel directory.

Building the Haddock Documentation

The haddock documentation can be built using the supplied shell script:


The docs get put in dist/doc/html/.

Building the testsuite

Snap is still in its very early stages, so most of the "action" (and a big chunk of the code) right now is centred on the test suite. Snap aims for 100% test coverage, and we're trying hard to stick to that.

To build the test suite, cd into the test/ directory and run

$ cabal configure
$ cabal build

From here you can invoke the testsuite by running:

$ ./ 

The testsuite generates an hpc test coverage report in test/dist/hpc.