A modest proposal

John Goerzen jgoerzen at complete.org
Sat Apr 15 20:44:25 EDT 2006


On Sat, Apr 15, 2006 at 07:15:28PM +1000, Hoan Ton-That wrote:
> Hello Happy Haskellers,
> 
> I would like to humbly suggest that we replace all Int
> functions in the prelude with the corresponding generic
> ones.  These are: drop, take, length, splitAt, replicate and
> (!!).
> 
> If at all possible it would be grand if we replaced the ones
> in Data.List (such as elemIndex) and other modules too!
> 
> Irradicate Irritating Ints!  There I said it!

On the downside, this means that I couldn't just say:

take 5 mylist

I'd instead have to write:

take (5::Int) mylist

I don't like having to do that.

-- John


More information about the Haskell-prime mailing list