[Haskell-cafe] about integer and float operations

Simon Peyton-Jones simonpj at microsoft.com
Fri Feb 6 10:12:57 EST 2009


| By the way: it is possible to use a private constructor (via some
| special GHC flag?).
| I would like to do a quick performance check using the existing
| fromRational specialization by constructing a Rational directly.
|
| I know that Haskell allows declaration hiding for program safety, but
| sometimes this can be a nuisance.

I think you mean that if you have
        module M(f) where
          f = ...
          g = ...

precompiled in a library, is it possible to call g?

No, I'm afraid it isn't, at least in GHC. For example,  'g' may no longer exist... it may have been inlined into 'f'.

Simon


More information about the Haskell-Cafe mailing list