[Haskell-cafe] NumberTheory library

ajb at spamcop.net ajb at spamcop.net
Tue May 10 22:49:12 EDT 2005


G'day all.

One more thing...

Quoting Yitzchak Gale <gale at sefer.org>:

> o I think that in most of the places where you
>    fix the type as Int or Integer, you could leave
>    it polymorphic and avoid a lot of coercing.

Even though it looks ugly, converting from an Int to an Integer is really
cheap under GHC.

Cheers,
Andrew Bromage


More information about the Haskell-Cafe mailing list