summaryrefslogtreecommitdiff
path: root/lib/Numeric/GSL/Differentiation.hs
diff options
context:
space:
mode:
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