Mixture of Integer and Float arithmetic without "fromIntegral"?

Tom Pledger Tom.Pledger@peace.com
Wed, 6 Dec 2000 10:54:05 +1300

Christian Lescher writes:
 > [...]
 > Let's say we restrict it to the types Int and Double. Is an
 > automatic conversion at least in this case possible?

You could try wheeling out Haskell's Least Used Keyword:

    module Defs where

    default(Double, Int)

    n = 3       -- This is defaulted to Double
    x = 12.3

    test = ceiling (x / n)

Other than that, I only know an answer that starts with "Design and
implement a language extension for ...", sorry.