HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Package1.0.5.1WebSnapIO-Streams

snap-core

Snap: A Haskell Web Framework (core interfaces and types)

Modules

13 modules
  • Snap.Core122This module contains the core type definitions, class instances, and functions
  • Snap.Test35The Snap.Test module contains primitives and combinators for testing Snap
  • Snap.Types.Headers18An opaque data type for HTTP headers. Intended to be imported qualified,
  • Snap.Util.CORS9Add CORS (cross-origin resource sharing)
  • Snap.Util.FileServe14Contains web handlers to serve files from a directory. Example usage: {-# LANGUAGE OverloadedStrings #-}
  • Snap.Util.FileUploads46This module contains primitives and helper functions for handling
  • Snap.Util.GZip5Helpers for running a Snap web handler with compression.
  • Snap.Util.Proxy2This module provides facilities for patching incoming Requests to
Internal modules · 5

Description

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.

Depends on

26 packages

Used by in this set · 1