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, 0.5 has been updated
       via  cf45253e0ccb57245313486e54972f034fb7a193 (commit)
      from  83345dd972b0149f730714d4e001fbd4c5b4669c (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 cf45253e0ccb57245313486e54972f034fb7a193
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 588179a..3913359 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

Reply via email to