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...@mega-nerd.com
> To: haskell@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@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/
_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to