diff options
author | Alberto Ruiz <aruiz@um.es> | 2007-06-16 11:20:50 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2007-06-16 11:20:50 +0000 |
commit | cc2c8c39dc088dcace0d2749cfe9180bf5fdbfd2 (patch) | |
tree | 0c33b9e728eec572ebcf5a5806f35d89cdcf8dbc /lib/Data/Packed/Internal | |
parent | f71a0a7e65f5fcd4e4e05a3cf114fc7d76419091 (diff) |
differentiation, integration, special
Diffstat (limited to 'lib/Data/Packed/Internal')
-rw-r--r-- | lib/Data/Packed/Internal/Common.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Data/Packed/Internal/Common.hs b/lib/Data/Packed/Internal/Common.hs index dddd269..acefe92 100644 --- a/lib/Data/Packed/Internal/Common.hs +++ b/lib/Data/Packed/Internal/Common.hs | |||
@@ -82,3 +82,7 @@ isComp w x = typeOf (undefined :: Complex Double) == typeOf (w x) | |||
82 | 82 | ||
83 | scast :: forall a . forall b . (Typeable a, Typeable b) => a -> b | 83 | scast :: forall a . forall b . (Typeable a, Typeable b) => a -> b |
84 | scast = fromJust . cast | 84 | scast = fromJust . cast |
85 | |||
86 | {- | conversion of Haskell functions into function pointers that can be used in the C side | ||
87 | -} | ||
88 | foreign import ccall "wrapper" mkfun:: (Double -> Ptr() -> Double) -> IO( FunPtr (Double -> Ptr() -> Double)) | ||