On Tue, Apr 12, 2005 at 11:04:14PM -0500, Alfredo Paz-Valderrama wrote: > but whe the Thompson's book says: > > -------------------------------------------- > Literals are not overloaded, there is no automatic conversion from Int to > Float. ^^^^^^^^^^^^^^^^^^^^^^^^^^^ My copy says (on p45) "Although literals are overloaded," and the point is explained in the previous paragraph.
Note though that fromInt should be replaced by the Haskell 98 function fromIntegral. _______________________________________________ Hugs-Users mailing list Hugs-Users@haskell.org http://www.haskell.org/mailman/listinfo/hugs-users