packages feed

happstack-0.5.0.2: happstack.cabal

Name:                happstack
Version:             0.5.0.2
Synopsis:            The haskell application server stack + code generation
Description:         The haskell application server stack
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.6

data-files:          CHANGELOG
                     CREDITS
                     RELEASE_NOTES
                     templates/project/bin/run.bat
                     templates/project/bin/run-interactive.bat
                     templates/project/bin/build.sh
                     templates/project/bin/run-interactive.sh
                     templates/project/bin/run.sh
                     templates/project/bin/build.bat
                     templates/project/Setup.hs
                     templates/project/templates/readme.st
                     templates/project/src/GuestBook.hs
                     templates/project/src/Main.hs
                     templates/project/src/App/Control.hs
                     templates/project/src/App/View.hs
                     templates/project/src/App/State.hs
                     templates/project/src/App/Logger.hs
                     templates/project/src/GuestBook/Control.hs
                     templates/project/src/GuestBook/View.hs
                     templates/project/src/GuestBook/State.hs
                     templates/project/src/GuestBook/State2.hs
                     templates/project/guestbook.cabal
                     templates/project/public/theme/images/menu_hover.gif
                     templates/project/public/theme/images/grunge.gif
                     templates/project/public/theme/images/entrymeta.gif
                     templates/project/public/theme/images/date.gif
                     templates/project/public/theme/images/logo.gif
                     templates/project/public/theme/images/peel.gif
                     templates/project/public/theme/images/menu_hili.gif
                     templates/project/public/theme/images/ql_rss.gif
                     templates/project/public/theme/images/blockquote.gif
                     templates/project/public/theme/images/header_loop.gif
                     templates/project/public/theme/readme.txt
                     templates/project/public/theme/style.css

source-repository head
    type:     darcs
    subdir:   happstack
    location: http://patch-tag.com/r/mae/happstack/pullrepo

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: False

Library
  exposed-modules:     Happstack.Server.HSP.HTML
                       Happstack.Server.HSX
                       Happstack.Server.HStringTemplate
                       Happstack.State.ClockTime
                       HSP.Identity
                       HSP.IdentityT
                       HSP.ServerPartT
                       HSP.WebT
                       HSP.Google.Analytics
  if flag(tests)
    Exposed-modules:   Happstack.Tests
  other-modules:       Paths_happstack

  build-depends:       base >= 3,
                       bytestring,
                       happstack-data   >= 0.5 && < 0.6,
                       happstack-ixset  >= 0.5 && < 0.6,
                       happstack-server >= 0.5 && < 0.6,
                       happstack-state  >= 0.5 && < 0.6,
                       happstack-util   >= 0.5 && < 0.6,
                       harp             >= 0.4 && < 0.5,
                       hslogger,
                       hsx >= 0.7 && < 0.8,
                       hsp >= 0.5.2 && < 0.6,
                       HStringTemplate >= 0.4.3 && < 0.7,
                       mtl,
                       old-time,
                       utf8-string,
                       text
                       
  if flag(base4)
    Build-Depends:     base >= 4 && < 5, syb
  else
    build-depends:     haskell-src-exts == 0.3.9,
                       HStringTemplate < 0.6

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

  ghc-options:         -Wall

Executable happstack
  ghc-options: -threaded
  build-depends:       directory >= 1,
                       filepath >= 1
                       
  hs-source-dirs:      commands
  main-is:             happstack.hs


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