diff options
author | 2012-03-10 16:04:21 +0000 | |
---|---|---|
committer | 2012-03-10 16:04:21 +0000 | |
commit | 0a65b9048ee9d9676faa9f8fdcca85ec689e16fc (patch) | |
tree | 3cfc6581032d07483a18c0be9c39326cbeac26c8 /dev-util/bustle/files | |
parent | Fix DEPS, remove setuptools which aren't needed (diff) | |
download | historical-0a65b9048ee9d9676faa9f8fdcca85ec689e16fc.tar.gz historical-0a65b9048ee9d9676faa9f8fdcca85ec689e16fc.tar.bz2 historical-0a65b9048ee9d9676faa9f8fdcca85ec689e16fc.zip |
Fix build failure against forthcoming ghc-7.4
Package-Manager: portage-2.2.0_alpha90_p1/cvs/Linux x86_64
Diffstat (limited to 'dev-util/bustle/files')
-rw-r--r-- | dev-util/bustle/files/bustle-0.4.0-ghc-7.4.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-util/bustle/files/bustle-0.4.0-ghc-7.4.patch b/dev-util/bustle/files/bustle-0.4.0-ghc-7.4.patch new file mode 100644 index 000000000000..0262dd8c9ddc --- /dev/null +++ b/dev-util/bustle/files/bustle-0.4.0-ghc-7.4.patch @@ -0,0 +1,46 @@ +diff --git a/Bustle/Noninteractive.hs b/Bustle/Noninteractive.hs +index 56e5d74..48d9461 100644 +--- a/Bustle/Noninteractive.hs ++++ b/Bustle/Noninteractive.hs +@@ -25,7 +25,7 @@ where + + import Prelude hiding (log) + +-import System ++import System.Exit (exitFailure) + import System.IO (hPutStrLn, stderr) + import Data.Maybe (fromMaybe, mapMaybe) + import Data.List (nub) +diff --git a/Bustle/Stats.hs b/Bustle/Stats.hs +index 8a3e206..d822058 100644 +--- a/Bustle/Stats.hs ++++ b/Bustle/Stats.hs +@@ -68,7 +68,7 @@ frequencies = reverse + where alt Nothing = Just 1 + alt (Just n) = Just (n + 1) + +-mean :: Fractional a => [a] -> a ++mean :: (Eq a, Fractional a) => [a] -> a + mean = acc 0 0 + where acc 0 _ [] = error "mean of empty list" + acc n t [] = t / n +diff --git a/bustle.cabal b/bustle.cabal +index 93b16bd..cd47efa 100644 +--- a/bustle.cabal ++++ b/bustle.cabal +@@ -94,7 +94,6 @@ Executable bustle + , glade + , glib + , gtk > 0.11 +- , haskell98 + , mtl + , pango + , parsec +@@ -114,7 +113,6 @@ Executable bustle + , glade + , glib + , gtk > 0.10 && < 0.11 +- , haskell98 + , mtl + , pango + , parsec |