2533: Generic functions that take integral arguments should
work the same way as their prelude counterparts
Duncan Coutts
duncan.coutts at worc.ox.ac.uk
Fri Aug 22 07:40:49 EDT 2008
On Fri, 2008-08-22 at 11:46 +0100, Neil Mitchell wrote:
> Hi
>
> > The Prelude functions drop, take, and splitAt are unfailing (never
> > call error). This patch changes the Data.List generic versions to
> > behave the same way. At present, they call error on negative
> > arguments.
>
> I had always just assumed that take and genericTake did the same
> thing, so had never even realised this problem existed. I'd call this
> a bug, that needs fixing.
I'd like to know the rationale for the difference in the first place, or
hear from one of the spec authors that it was just an oversight.
Duncan
More information about the Libraries
mailing list