Mixture of Integer and Float arithmetic without "fromIntegral"?

Christian Lescher christian@lescher.de
Tue, 05 Dec 2000 20:39:23 +0100


When defining expressions with arithmetic operations on a mixture of
Integers and Floats (except literals), an explicit conversion by
"fromIntegral" for the Integers is necessary, for example: ceiling
(fromIntegral n / x)

Is it possible to do the "fromInteger" conversion automatically? What's
the best way to do it? (overloading of operators, etc.?)

Christian