diff options
Diffstat (limited to 'lib/Numeric/GSL/Differentiation.hs')
-rw-r--r-- | lib/Numeric/GSL/Differentiation.hs | 5 |
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 | ||
25 | import Foreign | ||
26 | import Foreign.C.Types(CInt) | 25 | import Foreign.C.Types(CInt) |
26 | import Foreign.Marshal.Alloc(malloc, free) | ||
27 | import Foreign.Ptr(Ptr, FunPtr, freeHaskellFunPtr) | ||
28 | import Foreign.Storable(peek) | ||
27 | import Data.Packed.Internal(check,(//)) | 29 | import Data.Packed.Internal(check,(//)) |
30 | import System.IO.Unsafe(unsafePerformIO) | ||
28 | 31 | ||
29 | derivGen :: | 32 | derivGen :: |
30 | CInt -- ^ type: 0 central, 1 forward, 2 backward | 33 | CInt -- ^ type: 0 central, 1 forward, 2 backward |