BSD-3-Clause licensed by Bjorn Bringert
Maintained by John Chee
This version can be pinned in stack with:cgi-3001.3.0.3@sha256:8a044f6ffa419d51f5baa3cc1d86d0637c2d7942c32e9dfe9a53a6deebb8fe19,2073

Module documentation for 3001.3.0.3

cgi

hackage release stackage LTS package stackage Nightly package travis build status

This is a Haskell library for writing CGI programs. Its features include:

  • Access to CGI parameters (e.g. form input) from both GET and POST requests.
  • Access to CGI environment variables.
  • Ability to set arbitrary response headers.
  • Support for HTTP cookies.
  • An efficient implementation of multipart/form-data using Data.ByteString. This allows for efficient handling of file uploads.
  • Wrapper functions for compatibility with the old Network.CGI module.
  • A CGI monad transformer.
  • Basic exception handling and logging (these should be improved)
  • Low-level run functions that allow using programs written with this package with protocols other than CGI, for example FastCGI.

On hackage: http://hackage.haskell.org/package/cgi Source: https://github.com/cheecheeo/haskell-cgi

Changes

Change Log

All notable changes to this project will be documented in this file. This project adheres to the Package Versioning Policy.

[3001.3.0.3]

Changed

  • Bumped upper version bounds for containers and time.
  • Updated to exceptions 0.10.x. This meant extending our MonadMask instance to provide the generalBracket method that was added to the class in recent versions of the exceptions library.
  • The doctest suite would not work reliably with different versions of Cabal. Instead of going all out with a custom written build system to support it properly, we now run doctests as part of our CI builds but not as a part of the Cabal build any more.
  • Fixed several compiler warnings in our code.

3001.3.0.2

Changed

  • Bumped QuickCheck upper bound to version < 2.10

3001.3.0.1

Changed

  • Bumped doctest to version < 0.12

3001.3.0.0

Changed

  • Cookie.hs: cookieExpires now has type Maybe UTCTime rather than Maybe CalendarTime
  • Protocol.hs: URL decoding functions no longer decode UTF-8 encoding
  • Functor and Applicative instance of CGIT no longer constrain Functor or Applicative parameter to be an instance of Monad

3001.2.2.3

Changed

  • CGI.hs haddock: Use web.archive.org link for CGI specification

3001.2.2.2

Changed

  • Added support for building with mtl < 2.2.1 via flags

3001.2.2.1

Changed

  • Bumped exceptions version to < 0.9

3001.2.2.0

Added

  • MonadMask instance for CGIT

3001.2.1.0

Added

  • Applicative instance for CGI Monad

Changed

  • Deduplicate shared with multipart code

3001.2.0.0

Changed

  • GHC 7.8.3 support