Itβs easier there, compare the difference in output for :info fromIntegral and :info fromInteger :
> :info fromIntegral fromIntegral :: (Integral a, Num b) => a -> b -- Defined in `GHC.Real' > :info fromInteger class Num a where ... fromInteger :: Integer -> a -- Defined in `GHC.Num'
See how fromInteger is listed as part of a type class, but fromIntegral not? This is how you can tell.
source share