Build system: cleanup a few .cabal files
authorThomas Miedema <thomasmiedema@gmail.com>
Tue, 27 Oct 2015 13:01:48 +0000 (14:01 +0100)
committerThomas Miedema <thomasmiedema@gmail.com>
Fri, 30 Oct 2015 16:43:17 +0000 (17:43 +0100)
utils/ghc-cabal/ghc-cabal.cabal
utils/ghc-pwd/ghc-pwd.cabal
utils/hpc/hpc-bin.cabal
utils/runghc/runghc.cabal.in

index 5827333..1697f7c 100644 (file)
@@ -13,7 +13,7 @@ cabal-version: >=1.10
 
 Executable ghc-cabal
     Default-Language: Haskell2010
-    Main-Is: ghc-cabal.hs
+    Main-Is: Main.hs
 
     Build-Depends: base       >= 3   && < 5,
                    bytestring >= 0.10 && < 0.11,
index 4d155b0..dcd9529 100644 (file)
@@ -13,7 +13,7 @@ cabal-version: >=1.10
 
 Executable ghc-pwd
     Default-Language: Haskell2010
-    Main-Is: ghc-pwd.hs
+    Main-Is: Main.hs
     Build-Depends: base       >= 3   && < 5,
                    directory  >= 1   && < 1.3
 
index 0257fb9..87c5b11 100644 (file)
@@ -13,15 +13,9 @@ Category: Development
 build-type: Simple
 cabal-version: >=1.10
 
-Flag base4
-    Description: Choose the even newer, even smaller, split-up base package.
-
-Flag base3
-    Description: Choose the new smaller, split-up base package.
-
 Executable hpc
     Default-Language: Haskell2010
-    Main-Is: Hpc.hs
+    Main-Is: Main.hs
     Other-Modules: HpcParser
                    HpcCombine
                    HpcDraft
@@ -34,17 +28,10 @@ Executable hpc
                    HpcUtils
                    Paths_hpc_bin
 
-    if flag(base4)
-        Build-Depends: base       >= 4   && < 5
-    if flag(base3)
-        Build-Depends: base       >= 3   && < 4
-    if !flag(base3) && !flag(base4)
-        Build-Depends: base       < 3
-
-    if flag(base3) || flag(base4)
-        Build-Depends: directory  >= 1   && < 1.3,
-                       filepath   >= 1   && < 1.5,
-                       containers >= 0.1 && < 0.6,
-                       array      >= 0.1 && < 0.6
-    Build-Depends: hpc
+    Build-Depends: base       >= 4   && < 5,
+                   directory  >= 1   && < 1.3,
+                   filepath   >= 1   && < 1.5,
+                   containers >= 0.1 && < 0.6,
+                   array      >= 0.1 && < 0.6,
+                   hpc
 
index 6da179a..89f9e05 100644 (file)
@@ -12,18 +12,11 @@ Category: Development
 build-type: Simple
 cabal-version: >=1.10
 
-Flag base3
-    Description: Choose the new smaller, split-up base package.
-
 Executable runghc
     Default-Language: Haskell2010
     Main-Is: Main.hs
 
-    if flag(base3)
-        Build-Depends: base       >= 3   && < 5,
-                       directory  >= 1   && < 1.3,
-                       process    >= 1   && < 1.3
-    else
-        Build-Depends: base < 3
-    Build-Depends: filepath
-
+    Build-Depends: base       >= 3   && < 5,
+                   directory  >= 1   && < 1.3,
+                   process    >= 1   && < 1.3,
+                   filepath