packages feed

httpd-shed-0.4.1.2: httpd-shed.cabal

Name:           httpd-shed
Version:        0.4.1.2
License:        BSD3
License-File:   LICENSE
Author:         Andy Gill, Brandon Moore, Henning Thielemann, John Van Enk.
Category:       Network, Web
Synopsis:       A simple web-server with an interact style API
Description:    
                This web server promotes a Request to IO Response function
                into a local web server. The user can decide how to interpret
                the requests, and the library is intended for implementing Ajax APIs.

Maintainer:     Ganesh Sittampalam
Copyright:      (c) 2009 Andy Gill
Build-Type:     Simple
cabal-version:  >= 1.10

Source-Repository head
  Type:        git
  Location:    https://github.com/hsenag/httpd-shed/

Flag buildExamples
  Description: Build example executables
  Default:     False

flag network-uri
   description: Get Network.URI from the network-uri package
   default: True

flag network-bsd
   description: Get Network.BSD from the network-bsd package
   default: True

Library
  default-language: Haskell2010
  if flag(network-uri)
     build-depends: network-uri >= 2.6, network >= 2.6
  else
     build-depends: network-uri < 2.6, network < 2.6
  if flag(network-bsd)
     build-depends: network-bsd >= 2.7 && < 2.9,
                    network >= 2.7
  else
     build-depends: network < 2.7
  Build-Depends:
    network >=2.3     && <3.2,
    network-uri >=2.5 && <2.7,
    base >= 4.0 && <5.0
  Ghc-Options: -Wall
  Exposed-modules:
    Network.Shed.Httpd

-- Trivial test; we need real tests!
Executable httpd-shed-test
  default-language: Haskell2010
  If !flag(buildExamples)
    Buildable: False
  build-depends: base, httpd-shed, network, network-uri, network-bsd
  Main-Is:        Main.hs
  Hs-Source-Dirs: test