bignums, gmp, bytestring, .. ?

Bulat Ziganshin bulat.ziganshin at
Tue Nov 28 02:01:28 EST 2006

Hello John,

Tuesday, November 28, 2006, 4:52:09 AM, you wrote:

>> The simple problem with Haskell and Integer is that, according to the
>> Standard, Integer is a primitive: it is consequently implemented as  
>> part of the runtime system (RTS),

> there is no requirement that Integer be a primitive. a plain old
> implementation in haskell or via the FFI is certainly a valid one.

as a part of my Core library i've defined simplest implementation of
Integer for poor compilers:

newtype Integer = Integer Int

plusInteger = liftI2 plusInt

it's also possible to use [Int] here if some poor compilers will
really arrive

Best regards,
 Bulat                            mailto:Bulat.Ziganshin at

More information about the Glasgow-haskell-users mailing list