When I enter :t 4ghci, I get
Prelude> :t 4
4 :: Num t => t
I understand why it 4is not only Int or Integer, but it is also displayed from the bottom up, but I do not understand why something like this is 4not displayed as Ord t => tor even more correctly:
4 :: (Ord t || Num t) => t
Since it 4is both Ord, and Num, but Ordalso Numhave no connection ...
So why :t 4only outputs Num?
source
share