This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "snap".
The branch, master has been updated
via 28174103c11a304f3e8b75310679d8e58da9ad22 (commit)
from 2f54d2e1c41bef505128eb04fada034670e5166c (commit)
Summary of changes:
project_template/default/foo.cabal | 24 +++++++++++++++---------
1 files changed, 15 insertions(+), 9 deletions(-)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 28174103c11a304f3e8b75310679d8e58da9ad22
Author: Carl Howells <[email protected]>
Date: Mon Feb 21 10:25:05 2011 -0800
Update the template .cabal file to disable warnings and optimizations in
development mode
diff --git a/project_template/default/foo.cabal
b/project_template/default/foo.cabal
index 5f8a96e..7f6f666 100644
--- a/project_template/default/foo.cabal
+++ b/project_template/default/foo.cabal
@@ -18,10 +18,6 @@ Executable projname
hs-source-dirs: src
main-is: Main.hs
- if flag(development)
- cpp-options: -DDEVELOPMENT
- build-depends: hint >= 0.3.2 && < 0.4
-
Build-depends:
base >= 4 && < 5,
bytestring >= 0.9.1 && < 0.10,
@@ -37,10 +33,20 @@ Executable projname
extensions: TypeSynonymInstances MultiParamTypeClasses
- if impl(ghc >= 6.12.0)
- ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields -O2
- -fno-warn-orphans -fno-warn-unused-do-bind
+ 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
- ghc-options: -threaded -Wall -fwarn-tabs -funbox-strict-fields -O2
- -fno-warn-orphans
+ 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
-----------------------------------------------------------------------
hooks/post-receive
--
snap
_______________________________________________
Snap mailing list
[email protected]
http://mailman-mail5.webfaction.com/listinfo/snap