[Haskell-cafe] about integer and float operations

Yitzchak Gale gale at sefer.org
Thu Feb 5 06:01:09 EST 2009

Manlio Perillo wrote:
> By the way, in GHC.Float there is a (private):
> integerLogBase :: Integer -> Integer -> Int

Yes, I have needed this function many times.
Too bad it is not exposed.

In this case, though, we only need base 2.
For that, it would be nice if we could just read
it directly from the internal representation of
the Integer.


More information about the Haskell-Cafe mailing list