Add bindings for marshaling to/from mpz_t
Please add bindings to allow efficient marshaling between Haskell Integer and C mpz_t's, e.g.:
-- Wraps a (struct __mpz_struct*).
type Mpz = Ptr ()
toMpz :: Integer -> IO Mpz
fromMpz :: Mpz -> IO Integer
This would be useful for efficiently interfacing with foreign code that uses GMP.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.8.3 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | libraries (other) |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |