[Haskell-beginners] the first argument of take is an Int and not Integral..

Sunil S Nandihalli sunil.nandihalli at gmail.com
Wed Aug 10 16:14:36 CEST 2011


Hi everybody,
 I feel forcing the first argument of take to be an Int is unnecessarily
restrictive .. Is there a rationale behind not making it just (Integral a) ?

right now it is
take::Int->[a]->[a]

I was thinking may be

take::(Integral b)=>b->[a]->[a]

would be better...

Thanks,
Sunil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110810/ed710ba7/attachment.htm>


More information about the Beginners mailing list