Haskell.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview
thread

GMP

John Meacham

9 Jun 2004 9 Jun '04
8:14 p.m.

I was curious what the best way would be to access the various useful GMP functions which are not exported for Integers. I was thinking of making my own (strict) Integer type, but it would be much easier if I can just use the FFI to import the required functions and get at the mpz_t inside Integers somehow. I am not positive, but it looks like ghc seems to have primitives which call the gmp functions internally rather than using the FFI.. At least I didn't see an obvious example poking around in the library. Has someone already done this? a Math.Integer.Advanced (or something) library would be quite a useful addition to ghc. John -- John Meacham - ⑆repetae.net⑆john⑈

0 0
Reply
Sign in to reply online Use email software

Back to the thread

Back to the list

HyperKitty Powered by HyperKitty version 1.3.9.