From a9eb8fcbfebd88e7c34b93a7b9de0b3ab311a028 Mon Sep 17 00:00:00 2001 From: "Thomas M. DuBuisson" Date: Mon, 16 Jun 2014 14:54:49 -0700 Subject: [PATCH] Work around for haskell/cabal#1725 --- SHA.cabal | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/SHA.cabal b/SHA.cabal index 32ecc52..ce7c416 100644 --- a/SHA.cabal +++ b/SHA.cabal @@ -76,10 +76,11 @@ Executable sha1 if !flag(exe) buildable: False hs-source-dirs: src-bin - build-depends: base >= 4 && < 6, - bytestring > 0.8 && < 10000, - directory > 0.0 && < 10000, - SHA > 1.6 && < 10000 + if flag(exe) + build-depends: base >= 4 && < 6, + bytestring > 0.8 && < 10000, + directory > 0.0 && < 10000, + SHA > 1.6 && < 10000 Main-Is: Main.hs extensions: CPP GHC-Options: -O2 -Wall -fno-ignore-asserts -fno-warn-orphans @@ -90,10 +91,11 @@ Executable sha384 if !flag(exe) buildable: False hs-source-dirs: src-bin - build-depends: base >= 4 && < 6, - bytestring > 0.8 && < 10000, - directory > 0.0 && < 10000, - SHA > 1.6 && < 10000 + if flag(exe) + build-depends: base >= 4 && < 6, + bytestring > 0.8 && < 10000, + directory > 0.0 && < 10000, + SHA > 1.6 && < 10000 GHC-Options: -O2 -Wall -fno-ignore-asserts -fno-warn-orphans -funbox-strict-fields -fwarn-tabs Main-Is: Main.hs