diff options
Diffstat (limited to 'lib/Data/Packed/Internal/Common.hs')
-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)) | ||