
28 Nov
2006
28 Nov
'06
2:01 a.m.
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@gmail.com