Description: Workaround Cabal bug of GHC parameter order
 Cabal is reordering the GHC parameters, so the old code would put
 -fwarn-no-unused-do-bind before -Wall, which would not avoid this warnings
 from showing.  This is very important because there's an UTF-8 char being
 shown in one of the warnings (in Criterion/Analysis.hs), which was making the
 build fail in hosts without a configured locale.
Forwarded: http://lists.debian.org/debian-haskell/2010/05/msg00099.html
Author: Marco Túlio Gontijo e Silva <marcot@debian.org>
Last-Update: 2010-05-21

Index: criterion-0.5.0.0/criterion.cabal
===================================================================
--- criterion-0.5.0.0.orig/criterion.cabal	2010-05-21 18:31:43.000000000 -0300
+++ criterion-0.5.0.0/criterion.cabal	2010-05-21 18:42:41.000000000 -0300
@@ -68,8 +68,10 @@
   -- gather extensive profiling data for now
   ghc-prof-options: -auto-all
 
-  ghc-options: -Wall -funbox-strict-fields -O2
+  ghc-options: -funbox-strict-fields -O2
   if impl(ghc >= 6.8)
     ghc-options: -fwarn-tabs
-  if impl(ghc >= 6.12)
-    ghc-options: -fno-warn-unused-do-bind
+    if impl(ghc >= 6.12)
+      ghc-options: -Wall -fno-warn-unused-do-bind
+  else
+    ghc-options: -Wall
