[Haskell-cafe] (Num t) => [t] or [Int]

Bulat Ziganshin bulat.ziganshin at gmail.com
Fri May 9 17:15:30 EDT 2008

Hello PR,

Saturday, May 10, 2008, 1:07:48 AM, you wrote:

> Okay, when it comes to 3.3:[1,2,3] (Num t) => [t] makes more sense.
> Is that the only reason?

the reason is that 1 as any other numerical constant, may be directly
used as Int, Integer, Double or any other Num value. if 1 is Int, you
will need to make more conversions

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com

More information about the Haskell-Cafe mailing list