summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Kolmodin <kolmodin@gentoo.org>2010-03-30 22:22:53 +0000
committerLennart Kolmodin <kolmodin@gentoo.org>2010-03-30 22:22:53 +0000
commit520f6845fcd99ebb1ec93a81901117145c93f119 (patch)
tree8292f9694f143f9d69b7dce27cd9640edf00ac49 /dev-haskell/haddock/files
parentWhen using dummy haskell libraries, there is no test suite. (diff)
downloadhistorical-520f6845fcd99ebb1ec93a81901117145c93f119.tar.gz
historical-520f6845fcd99ebb1ec93a81901117145c93f119.tar.bz2
historical-520f6845fcd99ebb1ec93a81901117145c93f119.zip
Patched dev-haskell/haddock-2.4.2 to work with both dev-haskell/cabal-1.6* and cabal-1.8*.
Package-Manager: portage-2.1.7.17/cvs/Linux x86_64
Diffstat (limited to 'dev-haskell/haddock/files')
-rw-r--r--dev-haskell/haddock/files/haddock-2.4.2-Setup.hs12
1 files changed, 10 insertions, 2 deletions
diff --git a/dev-haskell/haddock/files/haddock-2.4.2-Setup.hs b/dev-haskell/haddock/files/haddock-2.4.2-Setup.hs
index 31ee04eb8168..19b2c5ba3a5e 100644
--- a/dev-haskell/haddock/files/haddock-2.4.2-Setup.hs
+++ b/dev-haskell/haddock/files/haddock-2.4.2-Setup.hs
@@ -1,6 +1,8 @@
{-
Setup.hs: based on code from ghc-paths of Simon Marlow
Fixed to not use the .buildinfo, and use -Dfoo flags for both libraries and executables
+
+Modified 2010-03-30 to work with both cabal-1.6 and cabal-1.8. See bug #302489.
-}
import Distribution.Simple
import Distribution.Simple.Setup
@@ -20,12 +22,18 @@ main = defaultMainWithHooks simpleUserHooks {
confHook = myCustomConfHook
}
where
+{- With cabal-1.6, myCustomConfHook has this type
myCustomConfHook :: (Either GenericPackageDescription PackageDescription, HookedBuildInfo)
-> ConfigFlags
-> IO LocalBuildInfo
- myCustomConfHook egpdpdhbi flags = do
+ With cabal-1.8, myCustomConfHook has this type
+ myCustomConfHook :: (GenericPackageDescription, HookedBuildInfo)
+
+So, better to not specify the type at all as we're not required to...
+-}
+ myCustomConfHook gpd flags = do
-- get the default LBI
- lbi <- confHook simpleUserHooks egpdpdhbi flags
+ lbi <- confHook simpleUserHooks gpd flags
let programs = withPrograms lbi
libdir_ <- rawSystemProgramStdoutConf (fromFlag (configVerbosity flags))