Modernise the Cabal file
authorIan Lynagh <igloo@earth.li>
Wed, 23 Jul 2008 14:00:38 +0000 (14:00 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 23 Jul 2008 14:00:38 +0000 (14:00 +0000)
hsc2hs.cabal

index ec7f808..8d06366 100644 (file)
@@ -20,9 +20,22 @@ Description:
        http://www.haskell.org/ghc/docs/latest/html/users_guide/hsc2hs.html
 Category: Development
 Data-Files: template-hsc.h
+build-type: Simple
+cabal-version: >=1.2
+
+Flag base3
+  Description: Choose the new smaller, split-up base package.
+
+Executable hsc2hs
+    Main-Is: Main.hs
+    -- needed for ReadP (used by Data.Version)
+    Hugs-Options: -98
+    Extensions: CPP, ForeignFunctionInterface
+    if flag(base3)
+        Build-Depends: base       >= 3   && < 4,
+                       directory  >= 1   && < 1.1,
+                       process    >= 1   && < 1.1
+    else
+        Build-Depends: base < 3
+    Build-Depends: haskell98, Cabal
 
-Executable: hsc2hs
-Main-Is: Main.hs
--- needed for ReadP (used by Data.Version)
-Hugs-Options: -98
-Extensions: CPP, ForeignFunctionInterface