haskell-hsh (2.0.3-6) HSH.cabal

Summary

 HSH.cabal |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

    
download this patch

Patch contents

--- haskell-hsh-2.0.3.orig/HSH.cabal
+++ haskell-hsh-2.0.3/HSH.cabal
@@ -23,6 +23,11 @@
   description: Build the executable to run unit tests
   default: False
 
+flag threaded
+  default: True
+  description: Build with support for multithreaded execution
+
+
 library
   Exposed-Modules: HSH, HSH.Command, HSH.ShellEquivs, HSH.Channel
   Extensions: ExistentialQuantification, OverlappingInstances,
@@ -32,7 +37,9 @@
     bytestring
   if !os(windows)
     Build-Depends: unix
-  GHC-Options: -O2 -threaded -Wall
+  GHC-Options: -O2 -Wall
+  if flag(threaded)
+    GHC-Options: -threaded
 
 Executable runtests
   if flag(buildtests)
@@ -49,4 +56,6 @@
   HS-Source-Dirs: testsrc, .
   Extensions: ExistentialQuantification, OverlappingInstances,
     UndecidableInstances, FlexibleContexts, CPP
-  GHC-Options: -O2 -threaded
+  GHC-Options: -O2 
+  if flag(threaded)
+    GHC-Options: -threaded