[Haskell] Parsec operator issue

Adam Crume adamcrume at hotmail.com
Wed Feb 17 03:38:16 EST 2010


The problem was the same, but I needed a slightly different solution.  You got me on the right track, though.  Also, thanks for the tip about haskell-cafe.


> Date: Wed, 17 Feb 2010 09:50:50 +1100
> From: mle+hs at mega-nerd.com
> To: haskell at haskell.org
> Subject: Re: [Haskell] Parsec operator issue
> 
> Adam Crume wrote:
> 
> > 
> > I have a parser with a prefix "-" and an infix "=".  When I try to 
> >  parse "x=-1", it fails.  Does anyone know how to fix this? 
> >  I stripped my code down as much as possible.  It parses "x=1" and 
> >  "-1", but fails for "x=-1". 
> 
> I ran into simialr problems some time ago and blogged about it
> here:
> 
>    http://www.mega-nerd.com/erikd/Blog/CodeHacking/Haskell/parsec_expression_parsing.html
> 
> Not sure if your problem is exactly the same, but my solution might
> point you in the right direction.
> 
> BTW, the haskell-cafe mailing list may be a better place for questions
> like this. It seems to have a larger readership and is more discussion
> focused while this list is more for announcements.
> 
> Cheers,
> Erik
> 
> -- 
> ----------------------------------------------------------------------
> Erik de Castro Lopo
> http://www.mega-nerd.com/
> _______________________________________________
> Haskell mailing list
> Haskell at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell
 		 	   		  
_________________________________________________________________
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/201469227/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell/attachments/20100217/398b1b16/attachment.html


More information about the Haskell mailing list