packages feed

happstack-contrib-0.1: happstack-contrib.cabal

Name:                happstack-contrib
Version:             0.1
Synopsis:            Web related tools and services.
Description:         Collection of standalone applications
License:             BSD3
License-file:        COPYING
Author:              Happstack team, HAppS LLC
Maintainer:          Happstack Team <happs@googlegroups.com>
homepage:            http://happstack.com
Category:            Web, Distributed Computing
Build-Type:          Simple
Cabal-Version:       >= 1.2.3

Flag base4
    Description: Choose the even newer, even smaller, split-up base package.

Flag tests
    Description: Build the testsuite, and include the tests in the library
    Default: True

Library

  Exposed-modules:
                       HAppS.Server.Facebook
                       HAppS.Store.FlashMsgs
                       HAppS.Store.HelpReqs
  if flag(tests)
    Exposed-modules:   
                       HAppS.Contrib.Tests

  Build-Depends:       base, network, old-time, bytestring, happstack-server,
                       mtl, HTTP >= 4000.0.2, directory, happstack-util, happstack-data,
                       happstack-state, happstack-ixset

  hs-source-dirs:      src

  if !os(windows)
     Build-Depends:    unix
     cpp-options:      -DUNIX
  if flag(base4)
    Build-Depends:     base >= 4 && < 5, syb
  if flag(tests)
    Build-Depends:     HUnit

  if flag(tests)
    hs-source-dirs:    tests

  -- Should have ", DeriveDataTypeable, PatternSignatures" but Cabal complains
  Extensions:          CPP, TemplateHaskell, FlexibleInstances,
                       DeriveDataTypeable, MultiParamTypeClasses, TypeFamilies,
                       TypeSynonymInstances, ImplicitParams, TypeOperators,
                       UndecidableInstances
  ghc-options:         -Wall
  GHC-Prof-Options:    -auto-all


Executable happstack-contrib-tests
  Main-Is: Test.hs
  GHC-Options: -threaded
  Build-depends: HUnit
  hs-source-dirs: tests, src
  if flag(tests)
    Buildable: True
  else
    Buildable: False