Hi! I'm intrigued by the following Haskell behaviour: The type of (+) is (+) :: (Num a) => a -> a -> a Now, if I define p = (+) the type of p is inferred to be p :: Integer -> Integer -> Integer How come? I guess the answer can be found somewhere in the Haskell report, but I'd really appreciate just a rough description of the issue. Thanks in advance. Jan Carlson
- Re: Inferring types Jan Carlson
- Re: Inferring types Fergus Henderson
- Re: Inferring types Jon Fairbairn
- Re: Inferring types Marcin 'Qrczak' Kowalczyk
- RE: Inferring types Chris Angus
- Re: Inferring types Marcin 'Qrczak' Kowalczyk