[jhc] bug with Integer?

Mark Wotton mwotton at gmail.com
Tue Aug 11 10:11:49 EDT 2009


On 11/08/2009, at 11:45 PM, John Meacham wrote:

> On Fri, Aug 07, 2009 at 11:01:15PM +1000, Mark Wotton wrote:
>> Does JHC support unbounded integers? I get different results from
>>
>> main = putStrLn $ show (2 * 7540113804746346428 * 2)
>>
>> in GHC and JHC...
>
> Yeah, the libraries that come with jhc currently don't have an  
> arbitrary
> precision integer library. This isn't so much an issue with jhc as the
> libraries it ships with, as jhc itself is agnostic about such library
> issues. Once a suitable Integer library gets written (either in pure
> haskell, or as a binding to an external C library) then I will include
> it.

Is there a problem with GMP? Or is it just that the Integer support is  
baked into the ghc runtime?

mark


More information about the jhc mailing list