Status of GHC runtime dependency on GNU multi precision arithmetic library

Isaac Dupree isaacdupree at
Wed Aug 22 11:43:58 EDT 2007

Isaac Dupree wrote:
> Stefan O'Rear wrote:
>> Another possibility that occured to me recently, is to switch Integer
>> to a simpler (perhaps even pure-Haskell) representation, and provide
>> (core?  extra?  Hackage?) a hsgmp package.  If you have big numbers,
>> switching is easy:
>> import Prelude hiding(Integer)
>> import Data.Integer.GMP
>> type Integer = MPZ
> except that

you also need to add "default (Integer, Double)" or similar.

and Int is rather machine-dependent and "could" be implemented in 
Haskell, too.  I definitely don't want programs using Int instead of 
Integer just because of Int being more standard and consistent.


More information about the Glasgow-haskell-users mailing list