diff options
Diffstat (limited to 'lib/Numeric/GSL/Integration.hs')
-rw-r--r-- | lib/Numeric/GSL/Integration.hs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Numeric/GSL/Integration.hs b/lib/Numeric/GSL/Integration.hs index 7103ea4..84e8546 100644 --- a/lib/Numeric/GSL/Integration.hs +++ b/lib/Numeric/GSL/Integration.hs | |||
@@ -20,10 +20,12 @@ module Numeric.GSL.Integration ( | |||
20 | integrateQAGS | 20 | integrateQAGS |
21 | ) where | 21 | ) where |
22 | 22 | ||
23 | import Foreign | ||
24 | import Foreign.C.Types(CInt) | 23 | import Foreign.C.Types(CInt) |
24 | import Foreign.Marshal.Alloc(malloc, free) | ||
25 | import Foreign.Ptr(Ptr, FunPtr, freeHaskellFunPtr) | ||
26 | import Foreign.Storable(peek) | ||
25 | import Data.Packed.Internal(check,(//)) | 27 | import Data.Packed.Internal(check,(//)) |
26 | 28 | import System.IO.Unsafe(unsafePerformIO) | |
27 | 29 | ||
28 | {- | conversion of Haskell functions into function pointers that can be used in the C side | 30 | {- | conversion of Haskell functions into function pointers that can be used in the C side |
29 | -} | 31 | -} |