summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Coutts <dcoutts@gentoo.org>2006-10-11 18:31:57 +0000
committerDuncan Coutts <dcoutts@gentoo.org>2006-10-11 18:31:57 +0000
commit6d07085ea07ee19973694499ef245a61ceb68eb4 (patch)
tree6855b624f471266cbe6c53138d9a55dc2dab969e /dev-haskell/happy/files
parentAdded patch to fix building with ghc-6.6 (diff)
downloadgentoo-2-6d07085ea07ee19973694499ef245a61ceb68eb4.tar.gz
gentoo-2-6d07085ea07ee19973694499ef245a61ceb68eb4.tar.bz2
gentoo-2-6d07085ea07ee19973694499ef245a61ceb68eb4.zip
Added patch to fix building with ghc-6.6
(Portage version: 2.1.1-r1)
Diffstat (limited to 'dev-haskell/happy/files')
-rw-r--r--dev-haskell/happy/files/happy-1.15-ghc66.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-haskell/happy/files/happy-1.15-ghc66.patch b/dev-haskell/happy/files/happy-1.15-ghc66.patch
new file mode 100644
index 000000000000..7a40971a2b6a
--- /dev/null
+++ b/dev-haskell/happy/files/happy-1.15-ghc66.patch
@@ -0,0 +1,41 @@
+diff -urwpN happy-1.15.orig/happy/src/LALR.lhs happy-1.15/happy/src/LALR.lhs
+--- happy-1.15.orig/happy/src/LALR.lhs 2005-01-14 14:57:54.000000000 +0000
++++ happy-1.15/happy/src/LALR.lhs 2006-09-12 10:02:19.000000000 +0100
+@@ -21,14 +21,14 @@ Generation of LALR parsing tables.
+
+ > import Control.Monad.ST
+ > import Data.Array.ST
+-> import Data.Array hiding (bounds)
++> import Data.Array as Array
+ > import Data.List (nub)
+
+ #elif defined(__GLASGOW_HASKELL__)
+
+ > import ST
+ > import MArray
+-> import Array hiding (bounds)
++> import Array as Array
+ > import List (nub)
+
+ #endif
+@@ -623,7 +623,7 @@ Count the conflicts
+ >
+ > where
+ >
+-> conflictArray = listArray (bounds action) conflictList
++> conflictArray = listArray (Array.bounds action) conflictList
+ > conflictList = map countConflictsState (assocs action)
+ >
+ > countConflictsState (state, actions)
+diff -urwpN happy-1.15.orig/happy/src/ProduceCode.lhs happy-1.15/happy/src/ProduceCode.lhs
+--- happy-1.15.orig/happy/src/ProduceCode.lhs 2005-01-18 10:18:19.000000000 +0000
++++ happy-1.15/happy/src/ProduceCode.lhs 2006-09-12 09:51:32.000000000 +0100
+@@ -27,8 +27,6 @@ The code generator.
+ > import Data.Array.Unboxed ( UArray )
+ > import Data.Array.MArray
+ > import Data.Array.IArray
+->
+-> marray_indices a = Data.Array.MArray.indices a
+
+ #elif __GLASGOW_HASKELL__ > 408
+