drop for negative argument
Simon Peyton-Jones
simonpj at microsoft.com
Tue Feb 22 11:00:19 EST 2005
Quite right. Ross fixed this in November, so it'll be in 6.4.
Simon
| -----Original Message-----
| From: glasgow-haskell-bugs-bounces at haskell.org
[mailto:glasgow-haskell-bugs-
| bounces at haskell.org] On Behalf Of Daniel Fischer
| Sent: 17 February 2005 14:13
| To: glasgow-haskell-bugs at haskell.org
| 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 at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
More information about the Glasgow-haskell-bugs
mailing list