Re: x and xx operators fail when given negatives

2007-05-26 Thread Chas Owens
On 5/25/07, Moritz Lenz <[EMAIL PROTECTED]> wrote: snip It did. For the future I'd suggest that you commit them yourself, that's far more efficient. Just tell us what nick name you want, and somebody will invite you. If you want a different email address then the one you used on this list, please

Re: x and xx operators fail when given negatives

2007-05-25 Thread Moritz Lenz
Hi, Chas Owens wrote: > "-" x -1 should evaluate to an empty string and 0 xx -1 should > evaluate to an empty list. I have hacked pugs/src/Pugs/Prim.hs to > correctly handle negatives, but I don't know Haskell very well and am > not familiar with the layout of Pugs, so I may have written bad code

Re: x and xx operators fail when given negatives

2007-05-25 Thread Chas Owens
it looks like the patch did not make it to the list, so here it is inline diff -ruN pugs.orig/src/Pugs/Prim.hs pugs/src/Pugs/Prim.hs --- pugs.orig/src/Pugs/Prim.hs 2007-05-25 16:34:55.0 -0400 +++ pugs/src/Pugs/Prim.hs 2007-05-25 15:59:47.0 -0400 @@ -923,6 +923,11 @@ | l

x and xx operators fail when given negatives

2007-05-25 Thread Chas Owens
"-" x -1 should evaluate to an empty string and 0 xx -1 should evaluate to an empty list. I have hacked pugs/src/Pugs/Prim.hs to correctly handle negatives, but I don't know Haskell very well and am not familiar with the layout of Pugs, so I may have written bad code in a bad place. I have also