Gentoo Archives: gentoo-commits

From: "Sergei Trofimovich (slyfox)" <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-haskell/happy/files: happy-1.19.5-ghc-7.10.2.patch
Date: Sat, 01 Aug 2015 15:32:25
Message-Id: 20150801153222.4E51C11E@oystercatcher.gentoo.org
1 slyfox 15/08/01 15:32:22
2
3 Added: happy-1.19.5-ghc-7.10.2.patch
4 Log:
5 Version bump.
6
7 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
8
9 Revision Changes Path
10 1.1 dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/happy/files/happy-1.19.5-ghc-7.10.2.patch?rev=1.1&content-type=text/plain
14
15 Index: happy-1.19.5-ghc-7.10.2.patch
16 ===================================================================
17 I'm not sure if it's a ghc feature or a bug.
18 Should happy emable that extension for -g option?
19
20 The build error is Kind mismatch:
21
22 monad002.g.hs:296:26:
23 Couldn't match kind ‘*’ with ‘#’
24 When matching types
25 t0 :: *
26 Happy_GHC_Exts.Int# :: #
27 Relevant bindings include
28 cont :: t0 -> [Char] -> Int -> ParseResult a
29 (bound at monad002.g.hs:293:13)
30 In the first argument of ‘cont’, namely ‘8#’
31 In the expression: cont 8#
32 In a case alternative: TokenLet -> cont 8#
33
34 Slightly related bug: https://ghc.haskell.org/trac/ghc/ticket/8739
35
36 diff --git a/tests/monad002.ly b/tests/monad002.ly
37 index 35cc5b0..4c526ca 100644
38 --- a/tests/monad002.ly
39 +++ b/tests/monad002.ly
40 @@ -5,2 +5,3 @@ Test for monadic Happy Parsers, Simon Marlow 1996.
41 > {-# OPTIONS_GHC -fglasgow-exts #-}
42 +> {-# LANGUAGE MonoLocalBinds #-}
43 > -- -fglasgow-exts required because P is a type synonym, and Happy uses it