logo       

RE: drop for negative argument: msg#00069

lang.haskell.glasgow.bugs

Subject: RE: drop for negative argument

Quite right. Ross fixed this in November, so it'll be in 6.4.

Simon

| -----Original Message-----
| From: glasgow-haskell-bugs-bounces@xxxxxxxxxxx
[mailto:glasgow-haskell-bugs-
| bounces@xxxxxxxxxxx] On Behalf Of Daniel Fischer
| Sent: 17 February 2005 14:13
| To: glasgow-haskell-bugs@xxxxxxxxxxx
| Subject: drop for negative argument
|
| Hello,
|
| I found that in GHC.List, drop is defined so that
|
| drop (-1) ls = [],
|
| which probably is a typing-error, since it disobeys the
|
| splitAt n ls == (take n ls, drop n ls)
|
| rule. I suggest changing that in future releases.
|
| Regards,
| Daniel Fischer
| _______________________________________________
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs@xxxxxxxxxxx
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise