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

David Virebayre dav.vire+haskell at gmail.com
Wed Aug 10 20:58:37 CEST 2011


2011/8/10 Daniel Fischer <daniel.is.fischer at googlemail.com>:
> Use fromInteger or fromIntegral

Wouldn't it be cool if Hoogle came up with fromInteger as the first
result for "Integer -> Int" ?

As it is now, you have to search for "Integer -> Int -syb -containers
-time -deepseq"

Don't know if it's easy though.

David.



More information about the Beginners mailing list