GMP from haskell

Manuel M. T. Chakravarty chak@cse.unsw.edu.au
Wed, 29 May 2002 15:53:06 +1000


Hal Daume III <hdaume@ISI.EDU> wrote,

> The gnu web page
> (www.gnu.org/manual/gmp-4.0.1/html_node/gmp_70.html) claims that Haskell
> (GHC) has bindings to GMP.  Is this true?  How can I access these
> routines?

For example, by

  Prelude> 1 + 2 :: Integer
  3
  Prelude> 

GHC implements Haskell's arbitrary precision integers by way
of GMP.

Cheers,
Manuel