Next | Atypical Types | 36 |
Constants like 163 are taken to be shorthand for
fromInteger 163
Where fromInteger has type
(Num a) => Integer -> a
So you can use "163" as a constant of any numeric type
As long as that type defines an appropriate fromInteger function
Next | Copyright © 1999,2008 Mark Dominus |