« Return to Thread: (Num t) => [t] or [Int]

(Num t) => [t] or [Int]

by PR Stanley :: Rate this Message:

Reply to Author | View in Thread

Hi
I thought [1, 2, 3] :: [Int]
GHC says it's (Num t) > [t]
Okay, when it comes to 3.3:[1,2,3] (Num t) => [t] makes more sense.
Is that the only reason?
Cheers,
Paul

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@...
http://www.haskell.org/mailman/listinfo/haskell-cafe

 « Return to Thread: (Num t) => [t] or [Int]