[Haskell-cafe] Re: a simple question about types

2010-11-19 Thread JerzM
Thank you for these excellent explanations. Best regards, Jerz -- View this message in context: http://haskell.1045720.n5.nabble.com/a-simple-question-about-types-tp3269519p3272344.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

[Haskell-cafe] Re: a simple question about types

2010-11-18 Thread Jon Fairbairn
Daniel Fischer writes: > On Wednesday 17 November 2010 19:09:16, Jerzy M wrote: >> Hallo, >> let me take this simple function: (2*). >> If I check its type >> >> :t (2*) >> >> I'll obtain >> (2*) :: (Num a) => a -> a >> >> But now it suffices to write >> g = (2*) >> and check >> >> :t g >> >> to