On running the following in GHCi:
:t 1:2
I get as output:
(Num [a], Num a) => [a]
While, running the following:
:t 'a':'b'
Gives me an error.
Personally, i fell that it should be a type error, but in case of Num
that's not the case. Can anyone explain what's happening here?
What I mean is that, of course it shouldn't work, but checking the type in the Num
case gives a result while in case of Char
it gives an error.