From 032fe19ddfa6e4cfba33f76aaa13043b54568fcf Mon Sep 17 00:00:00 2001 From: Clark Gaebel Date: Sun, 11 Mar 2012 11:41:58 -0400 Subject: Missed a couple safe annotations. --- lib/Numeric/GSL/Differentiation.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Numeric/GSL/Differentiation.hs') diff --git a/lib/Numeric/GSL/Differentiation.hs b/lib/Numeric/GSL/Differentiation.hs index 448ab63..d2a332c 100644 --- a/lib/Numeric/GSL/Differentiation.hs +++ b/lib/Numeric/GSL/Differentiation.hs @@ -48,7 +48,7 @@ derivGen c h f x = unsafePerformIO $ do freeHaskellFunPtr fp return result -foreign import ccall unsafe "gsl-aux.h deriv" +foreign import ccall safe "gsl-aux.h deriv" c_deriv :: CInt -> FunPtr (Double -> Ptr () -> Double) -> Double -> Double -> Ptr Double -> Ptr Double -> IO CInt @@ -84,4 +84,4 @@ derivBackward = derivGen 2 {- | conversion of Haskell functions into function pointers that can be used in the C side -} -foreign import ccall unsafe "wrapper" mkfun:: (Double -> Ptr() -> Double) -> IO( FunPtr (Double -> Ptr() -> Double)) +foreign import ccall safe "wrapper" mkfun:: (Double -> Ptr() -> Double) -> IO( FunPtr (Double -> Ptr() -> Double)) -- cgit v1.2.3