From agentzh at gmail.com Fri May 16 02:21:43 2008 From: agentzh at gmail.com (Agent Zhang) Date: Fri May 16 02:15:20 2008 Subject: [jhc] Parsec with JHC Message-ID: Hi, there Is it possible to compile Haskell programs using Parsec using JHC? I'm trying jhc 0.5.20080307 (the rpm downloaded from JHC's homepage) with the Parsec source tarball downloaded from here: http://legacy.cs.uu.nl/daan/download/parsec/parsec-2.0.zip I'm getting the following errors during compiling: $ jhc Main.hs -i ~/tmp/haskell/parsec -o test jhc: Syntax error in input, run through a compiler to check. ERROR: the precedence of HsVar {hsExpName = Text.ParserCombinators.Parsec.Prim.<|>} is incompatible with the precendence of it's argument: HsInfixApp (HsVar {hsExpName = Text.ParserCombinators.Parsec.Combinator.146_op}) (HsVar {hsExpName = Jhc.Monad.>>=}) (HsLambda /home/agentz/tmp/haskell/parsec/Text/ParserCombinators/Parsec/Combinator.hs:109:41 [HsPVar {hsPatName = Text.ParserCombinators.Parsec.Combinator.149_f}] (HsInfixApp (HsVar {hsExpName = Text.ParserCombinators.Parsec.Combinator.145_p}) (HsVar {hsExpName = Jhc.Monad.>>=}) (HsLambda /home/agentz/tmp/haskell/parsec/Text/ParserCombinators/Parsec/Combinator.hs:110:41 [HsPVar {hsPatName = Text.ParserCombinators.Parsec.Combinator.150_y}] (HsApp (HsVar {hsExpName = Text.ParserCombinators.Parsec.Combinator.147_rest}) (HsParen (HsApp (HsApp (HsVar {hsExpName = Text.ParserCombinators.Parsec.Combinator.149_f}) (HsVar {hsExpName = Text.ParserCombinators.Parsec.Combinator.148_x})) (HsVar {hsExpName = Text.ParserCombinators.Parsec.Combinator.150_y}))))))) Can I work around with it? Thanks in advance :) Cheers, -agentzh From john at repetae.net Fri May 16 02:54:06 2008 From: john at repetae.net (John Meacham) Date: Fri May 16 02:47:42 2008 Subject: [jhc] Parsec with JHC In-Reply-To: References: Message-ID: <20080516065406.GC28063@sliver.repetae.net> On Fri, May 16, 2008 at 02:21:43PM +0800, Agent Zhang wrote: > Is it possible to compile Haskell programs using Parsec using JHC? I'm > trying jhc 0.5.20080307 (the rpm downloaded from JHC's homepage) with > the Parsec source tarball downloaded from here: No, unfortunately jhc still can't compile many haskell packages without modification. It is getting better though, I am working on filling out jhc's library support and Parsec is certainly near the front of the list. John -- John Meacham - ?repetae.net?john? From agentzh at gmail.com Fri May 16 03:00:59 2008 From: agentzh at gmail.com (Agent Zhang) Date: Fri May 16 02:54:40 2008 Subject: [jhc] Parsec with JHC In-Reply-To: <20080516065406.GC28063@sliver.repetae.net> References: <20080516065406.GC28063@sliver.repetae.net> Message-ID: On Fri, May 16, 2008 at 2:54 PM, John Meacham wrote: > > No, unfortunately jhc still can't compile many haskell packages without > modification. It is getting better though, I am working on filling out > jhc's library support and Parsec is certainly near the front of the > list. > Thanks a lot for your quick response :) I'll wait for jhc's support for Parsec :) Best, -agentzh