[Haskell] Re: sizeFM type

Simon Marlow simonmar at microsoft.com
Wed Apr 28 18:35:12 EDT 2004

On 26 April 2004 19:45, Don Groves wrote:

> Hello, Haskell newbie here.
> Some languages handle the Int/Integer question automatically,
> determined by the size of the integer in question.  Int is used
> until the integer excedes what the underlying architecture can
> handle, then the switch is made to Integer (bignum).  Is this
> something that could be handled similarly by the Haskell compiler
> without violating anything?  Just thinking out loud...

This is exactly how GHC implements Integer, FWIW.


More information about the Haskell mailing list