Source for WeShift.org — http://www.weshift.org
Name: weshift-snap
Version: 0.1
Synopsis: Tool for organizing time at workplaces
Description: A rewrite of an ocsigen application
License: BSD3
Author: Daniel Patterson
Maintainer: dbp@riseup.net
Stability: Experimental
Category: Web
Build-type: Simple
Cabal-version: >=1.2
Flag development
Description: Whether to build the server in development (interpreted) mode
Default: False
Executable weshift-snap
hs-source-dirs: src
main-is: Main.hs
Build-depends:
base >= 4 && < 5,
bytestring >= 0.9.1 && < 0.10,
heist >= 0.5 && < 0.6,
MonadCatchIO-transformers >= 0.2.1 && < 0.3,
mtl >= 2 && < 3,
snap >= 0.5 && < 0.6,
snap-core >= 0.5 && < 0.6,
snap-server >= 0.5 && < 0.6,
text >= 0.11 && < 0.12,
time >= 1.2.0.5 && < 1.3,
xmlhtml == 0.1.*,
snap-auth,
blaze-html,
HDBC >= 2.2 && < 2.3,
HDBC-postgresql >= 2.2 && < 2.3,
containers,
bson,
digestive-functors,
digestive-functors-snap-heist == 0.1.3.*,
-- digestive-functors-heist == 0.1,
QuickCheck >= 2 && < 3,
split,
random,
aeson,
network,
HTTP,
attoparsec,
aeson,
heist-async >= 0.4,
email-postmark,
resource-pool >= 0.1 && < 0.2,
snap-less,
old-locale,
ssv >= 0.2 && < 0.3,
parsec >= 3.1 && < 3.2
extensions: TypeSynonymInstances MultiParamTypeClasses
if flag(development)
cpp-options: -DDEVELOPMENT
build-depends: hint >= 0.3.2 && < 0.4
-- In development mode, speed is already going to suffer, so skip
-- the fancy optimization flags. Additionally, disable all
-- warnings. The hint library doesn't give an option to execute
-- compiled code when there were also warnings, so disabling
-- warnings allows quicker workflow.
ghc-options: -threaded -w
else
if impl(ghc >= 6.12.0)
ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields -O2
-fno-warn-orphans -fno-warn-unused-do-bind
else
ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields -O2
-fno-warn-orphans
|