summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Differentiation.hs
diff options
context:
space:
mode:
authorBas van Dijk <v.dijk.bas@gmail.com>2011-09-01 14:25:37 +0000
committerBas van Dijk <v.dijk.bas@gmail.com>2011-09-01 14:25:37 +0000
commit4e6c686dd496e9b7bdd209da3e8fbd3ac47de65a (patch)
treee54a0d2639624bd5f40ea25e6539699b68e59261 /lib/Numeric/GSL/Differentiation.hs
parentc236a193ed710a29b6940b87bcbe05cb8f4a086a (diff)
Get rid of some deprecation warnings & Use more explicit imports
Diffstat (limited to 'lib/Numeric/GSL/Differentiation.hs')
-rw-r--r--lib/Numeric/GSL/Differentiation.hs5
1 files changed, 4 insertions, 1 deletions
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 (
22 derivBackward 22 derivBackward
23) where 23) where
24 24
25import Foreign
26import Foreign.C.Types(CInt) 25import Foreign.C.Types(CInt)
26import Foreign.Marshal.Alloc(malloc, free)
27import Foreign.Ptr(Ptr, FunPtr, freeHaskellFunPtr)
28import Foreign.Storable(peek)
27import Data.Packed.Internal(check,(//)) 29import Data.Packed.Internal(check,(//))
30import System.IO.Unsafe(unsafePerformIO)
28 31
29derivGen :: 32derivGen ::
30 CInt -- ^ type: 0 central, 1 forward, 2 backward 33 CInt -- ^ type: 0 central, 1 forward, 2 backward