5has a type of any type in the class Num. These types include Int, Double, Integeretc.
Num. , Num , . . 5 constant-five.
fromInteger 5, 5 Integer. , f 5 f (fromInteger 5), Int -> Int. Num (Int -> Int).
, GHC , 5 ( , , fromInteger). , Num.