From 4e6c686dd496e9b7bdd209da3e8fbd3ac47de65a Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Thu, 1 Sep 2011 14:25:37 +0000 Subject: Get rid of some deprecation warnings & Use more explicit imports --- lib/Numeric/GSL/Differentiation.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Numeric/GSL/Differentiation.hs') diff --git a/lib/Numeric/GSL/Differentiation.hs b/lib/Numeric/GSL/Differentiation.hs index ebbada0..a3c1aea 100644 --- a/lib/Numeric/GSL/Differentiation.hs +++ b/lib/Numeric/GSL/Differentiation.hs @@ -22,9 +22,12 @@ module Numeric.GSL.Differentiation ( derivBackward ) where -import Foreign import Foreign.C.Types(CInt) +import Foreign.Marshal.Alloc(malloc, free) +import Foreign.Ptr(Ptr, FunPtr, freeHaskellFunPtr) +import Foreign.Storable(peek) import Data.Packed.Internal(check,(//)) +import System.IO.Unsafe(unsafePerformIO) derivGen :: CInt -- ^ type: 0 central, 1 forward, 2 backward -- cgit v1.2.3