packages feed

snap-0.4: snap.cabal

name:           snap
version:        0.4
synopsis:       Snap: A Haskell Web Framework: project starter executable and glue code library
description:    Snap Framework project starter executable and glue code library
license:        BSD3
license-file:   LICENSE
author:         James Sanders, Shu-yu Guo, Gregory Collins, Doug Beardsley
maintainer:     snap@snapframework.com
build-type:     Simple
cabal-version:  >= 1.6
homepage:       http://snapframework.com/
category:       Web

extra-source-files:
  CONTRIBUTORS,
  LICENSE,
  README.md,
  README.SNAP.md,
  TODO,
  project_template/barebones/foo.cabal,
  project_template/barebones/src/Main.hs,
  project_template/default/foo.cabal,
  project_template/default/log/access.log,
  project_template/default/log/error.log,
  project_template/default/resources/static/screen.css,
  project_template/default/resources/templates/echo.tpl,
  project_template/default/resources/templates/index.tpl,
  project_template/default/src/Application.hs,
  project_template/default/src/Main.hs,
  project_template/default/src/Site.hs,
  project_template/default/src/Snap/Extension/Timer/Impl.hs,
  project_template/default/src/Snap/Extension/Timer.hs,
  extra/hscolour.css,
  extra/haddock.css,
  extra/logo.gif,
  test/snap-testsuite.cabal,
  test/runTests.sh,
  test/suite/Snap/TestCommon.hs,
  test/suite/TestSuite.hs


Library
  hs-source-dirs: src

  exposed-modules:
    Snap.Extension.Heist,
    Snap.Extension.Heist.Impl,
    Snap.Extension.Loader.Devel,
    Snap.Extension.Server,
    Snap.Extension

  other-modules:
    Snap.Extension.Loader.Devel.Evaluator,
    Snap.Extension.Loader.Devel.Signal,
    Snap.Extension.Loader.Devel.TreeWatcher

  build-depends:
    base >= 4 && < 5,
    blaze-builder >= 0.2.1.4 && <0.3,
    bytestring >= 0.9.1 && < 0.10,
    directory >= 1.0 && < 1.2,
    enumerator == 0.4.*,
    filepath >= 1.1 && <1.3,
    MonadCatchIO-transformers >= 0.2.1 && < 0.3,
    snap-core == 0.4.*,
    heist >= 0.5 && < 0.6,
    hint >= 0.3.3.1 && < 0.4,
    template-haskell >= 2.3 && < 2.6,
    time >= 1.0 && < 1.3

  if !os(windows) {
      build-depends:    unix >= 2.2.0.0 && < 2.5
  }

  if impl(ghc >= 6.12.0)
    ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
                 -fno-warn-orphans -fno-warn-unused-do-bind
  else
    ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
                 -fno-warn-orphans

Executable snap
  hs-source-dirs: src
  main-is: Snap/Starter.hs

  other-modules: Snap.StarterTH

  build-depends:
    attoparsec >= 0.8.0.2 && < 0.9,
    base >= 4 && < 5,
    bytestring,
    bytestring-nums,
    cereal >= 0.3 && < 0.4,
    containers,
    directory >= 1.0 && < 1.2,
    directory-tree,
    dlist >= 0.5 && < 0.6,
    enumerator == 0.4.*,
    filepath >= 1.1 && <1.3,
    haskell98,
    mtl >= 2,
    old-locale,
    old-time,
    snap-core >= 0.4 && <0.5,
    snap-server >= 0.4 && <0.5,
    template-haskell >= 2.3 && < 2.6,
    text >= 0.11 && <0.12,
    time,
    unix-compat,
    zlib

  ghc-prof-options: -prof -auto-all

  if impl(ghc >= 6.12.0)
    ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
                 -fno-warn-orphans -fno-warn-unused-do-bind
  else
    ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
                 -fno-warn-orphans

source-repository head
  type:     git
  location: http://git.snapframework.com/snap.git