summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2015-08-01 15:49:44 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2015-08-01 15:49:44 +0000
commitd80926ff6d5fbacb6241fbd936eb09a512245906 (patch)
tree0a49376baf4269cd5be3f7a65e9ea9232a91074f /dev-haskell/happy/files
parentPort to ghc-7.10. (diff)
downloadhistorical-d80926ff6d5fbacb6241fbd936eb09a512245906.tar.gz
historical-d80926ff6d5fbacb6241fbd936eb09a512245906.tar.bz2
historical-d80926ff6d5fbacb6241fbd936eb09a512245906.zip
Version bump.
Package-Manager: portage-2.2.20/cvs/Linux x86_64 Manifest-Sign-Key: 0x611FF3AA
Diffstat (limited to 'dev-haskell/happy/files')
-rw-r--r--dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch b/dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch
new file mode 100644
index 000000000000..dee216b029fb
--- /dev/null
+++ b/dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch
@@ -0,0 +1,27 @@
+I'm not sure if it's a ghc feature or a bug.
+Should happy emable that extension for -g option?
+
+The build error is Kind mismatch:
+
+ monad002.g.hs:296:26:
+ Couldn't match kind ‘*’ with ‘#’
+ When matching types
+ t0 :: *
+ Happy_GHC_Exts.Int# :: #
+ Relevant bindings include
+ cont :: t0 -> [Char] -> Int -> ParseResult a
+ (bound at monad002.g.hs:293:13)
+ In the first argument of ‘cont’, namely ‘8#’
+ In the expression: cont 8#
+ In a case alternative: TokenLet -> cont 8#
+
+Slightly related bug: https://ghc.haskell.org/trac/ghc/ticket/8739
+
+diff --git a/tests/monad002.ly b/tests/monad002.ly
+index 35cc5b0..4c526ca 100644
+--- a/tests/monad002.ly
++++ b/tests/monad002.ly
+@@ -5,2 +5,3 @@ Test for monadic Happy Parsers, Simon Marlow 1996.
+ > {-# OPTIONS_GHC -fglasgow-exts #-}
++> {-# LANGUAGE MonoLocalBinds #-}
+ > -- -fglasgow-exts required because P is a type synonym, and Happy uses it