summaryrefslogtreecommitdiff
path: root/lib/Data/Packed
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2007-06-16 11:20:50 +0000
committerAlberto Ruiz <aruiz@um.es>2007-06-16 11:20:50 +0000
commitcc2c8c39dc088dcace0d2749cfe9180bf5fdbfd2 (patch)
tree0c33b9e728eec572ebcf5a5806f35d89cdcf8dbc /lib/Data/Packed
parentf71a0a7e65f5fcd4e4e05a3cf114fc7d76419091 (diff)
differentiation, integration, special
Diffstat (limited to 'lib/Data/Packed')
-rw-r--r--lib/Data/Packed/Internal/Common.hs4
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
83scast :: forall a . forall b . (Typeable a, Typeable b) => a -> b 83scast :: forall a . forall b . (Typeable a, Typeable b) => a -> b
84scast = fromJust . cast 84scast = fromJust . cast
85
86{- | conversion of Haskell functions into function pointers that can be used in the C side
87-}
88foreign import ccall "wrapper" mkfun:: (Double -> Ptr() -> Double) -> IO( FunPtr (Double -> Ptr() -> Double))