|
RE: drop for negative argument: msg#00069lang.haskell.glasgow.bugs
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> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1146068 ] Data.Generics type error, SourceForge.net |
|---|---|
| Next by Date: | Re: ghc-6.4.20050220: panic! eval_data2tag..., Thomas Hallgren |
| Previous by Thread: | drop for negative argument, Daniel Fischer |
| Next by Thread: | current build blocks indefinitely, Matthias Neubauer |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |