packages feed

hgmp 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+12/−7 lines, 3 filesdep ~QuickCheckdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: QuickCheck, base

API changes (from Hackage documentation)

Files

+ CHANGELOG.md view
@@ -0,0 +1,5 @@+# 0.1.0.1+- use hsc2hs's #alignment macro in Storable instances++# 0.1.0.0+- initial release
hgmp.cabal view
@@ -1,5 +1,5 @@ name:                hgmp-version:             0.1.0.0+version:             0.1.0.1 synopsis:            Haskell interface to GMP description:         Currently, types and instances, and marshalling between                      Integer and Rational and the corresponding GMP types.@@ -19,7 +19,7 @@ copyright:           2016 Claude Heiland-Allen category:            Numeric build-type:          Simple-extra-source-files:  README.md examples/primes.hs+extra-source-files:  README.md CHANGELOG.md examples/primes.hs cabal-version:       >=1.10  library@@ -56,4 +56,4 @@ source-repository this   type:                git   location:            https://code.mathr.co.uk/hgmp.git-  tag:                 v0.1.0.0+  tag:                 v0.1.0.1
src/Numeric/GMP/Types.hsc view
@@ -25,7 +25,7 @@  instance Storable MPZ where   sizeOf _ = (#size __mpz_struct)-  alignment _ = alignment nullPtr -- TODO verify+  alignment _ = (#alignment __mpz_struct)   peek ptr = do     alloc <- (#peek __mpz_struct, _mp_alloc) ptr     size <- (#peek __mpz_struct, _mp_size) ptr@@ -44,7 +44,7 @@  instance Storable MPQ where   sizeOf _ = (#size __mpq_struct)-  alignment _ = alignment (undefined :: MPZ)+  alignment _ = (#alignment __mpq_struct)   peek ptr = do     num <- (#peek __mpq_struct, _mp_num) ptr     den <- (#peek __mpq_struct, _mp_den) ptr@@ -68,7 +68,7 @@  instance Storable MPF where   sizeOf _ = (#size __mpf_struct)-  alignment _ = alignment nullPtr -- TODO verify+  alignment _ = (#alignment __mpf_struct)   peek ptr = do     prec <- (#peek __mpf_struct, _mp_prec) ptr     size <- (#peek __mpf_struct, _mp_size) ptr@@ -90,7 +90,7 @@  instance Storable GMPRandState where   sizeOf _ = (#size __gmp_randstate_struct)-  alignment _ = alignment nullPtr -- TOOD verify+  alignment _ = (#alignment __gmp_randstate_struct)   peek ptr = do     seed <- (#peek __gmp_randstate_struct, _mp_seed) ptr     alg <- (#peek __gmp_randstate_struct, _mp_alg) ptr