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
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⑈
On Fri, May 16, 2008 at 2:54 PM, John Meacham
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
participants (2)
-
Agent Zhang -
John Meacham