Generic functions that take integral arguments should work the same way as their...
author <unknown> <>
Fri, 22 Aug 2008 02:27:55 +0000 (02:27 +0000)
committer <unknown> <>
Fri, 22 Aug 2008 02:27:55 +0000 (02:27 +0000)
commitf944cc5444d0af4769f48100a93d31c0759a0ee1
tree7cd376faaf9359aa4c4715e9d83ac5af850d46b8
parent526f1dd284159d7e7b52d0263bc61fd54459d78b
Generic functions that take integral arguments should work the same way as their prelude counterparts

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.
Data/List.hs