hmpfr 0.4.2 → 0.4.2.1
raw patch · 3 files changed
+5/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- ChangeLog +1/−0
- hmpfr.cabal +1/−1
- src/Data/Number/MPFR/FFIhelper.hsc +3/−2
ChangeLog view
@@ -1,3 +1,4 @@+0.4.2.1: 28 Dec 2016: instance Generic MPFR 0.4.2: 2nd Sep 2016: Added RealFloat instances 0.4.1: 2nd Aug 2016: Added support for digamma 0.4.: 11th Jul 2016: Compiles only with ghc 7.10 or newer
hmpfr.cabal view
@@ -1,5 +1,5 @@ name: hmpfr-version: 0.4.2+version: 0.4.2.1 synopsis: Haskell binding to the MPFR library description: Haskell binding to the MPFR library.
src/Data/Number/MPFR/FFIhelper.hsc view
@@ -1,4 +1,4 @@-{-# LANGUAGE ForeignFunctionInterface, DeriveDataTypeable, GeneralizedNewtypeDeriving #-}+{-# LANGUAGE ForeignFunctionInterface, DeriveGeneric, DeriveDataTypeable, GeneralizedNewtypeDeriving #-} #include <chsmpfr.h> #include <mpfr.h> @@ -20,6 +20,7 @@ import Foreign.ForeignPtr (ForeignPtr, withForeignPtr, mallocForeignPtrBytes) import Data.Typeable(Typeable)+import GHC.Generics(Generic) import Data.Function(on) @@ -59,7 +60,7 @@ sign :: {-# UNPACK #-} !Sign, exponent :: {-# UNPACK #-} !Exp, limbs :: {-# UNPACK #-} !(ForeignPtr Limb)-} deriving (Typeable)+} deriving (Typeable, Generic) instance Storable MPFR where sizeOf _ = #size __mpfr_struct