summaryrefslogtreecommitdiff
path: root/lib/Data/Packed/Internal/Common.hs
diff options
context:
space:
mode:
authorAlberto Ruiz <aruiz@um.es>2012-03-13 11:21:21 +0100
committerAlberto Ruiz <aruiz@um.es>2012-03-13 11:21:21 +0100
commit9c4a8a37291f902312215452d0bdd9ad95408ae9 (patch)
tree72d468cfa9999dc079466f250883dfb131d016ba /lib/Data/Packed/Internal/Common.hs
parent6f6455593c0490e4710854b08fc63a2d0993dcac (diff)
parent032fe19ddfa6e4cfba33f76aaa13043b54568fcf (diff)
Merge remote-tracking branch 'wowus/master' into unsafe
Diffstat (limited to 'lib/Data/Packed/Internal/Common.hs')
-rw-r--r--lib/Data/Packed/Internal/Common.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Data/Packed/Internal/Common.hs b/lib/Data/Packed/Internal/Common.hs
index a8c3c3e..49f17b0 100644
--- a/lib/Data/Packed/Internal/Common.hs
+++ b/lib/Data/Packed/Internal/Common.hs
@@ -140,7 +140,7 @@ errorCode n = "code "++show n
140 140
141 141
142-- | clear the fpu 142-- | clear the fpu
143foreign import ccall "asm_finit" finit :: IO () 143foreign import ccall unsafe "asm_finit" finit :: IO ()
144 144
145-- | check the error code 145-- | check the error code
146check :: String -> IO CInt -> IO () 146check :: String -> IO CInt -> IO ()
@@ -158,7 +158,7 @@ check msg f = do
158 return () 158 return ()
159 159
160-- | description of GSL error codes 160-- | description of GSL error codes
161foreign import ccall "gsl_strerror" gsl_strerror :: CInt -> IO (Ptr CChar) 161foreign import ccall unsafe "gsl_strerror" gsl_strerror :: CInt -> IO (Ptr CChar)
162 162
163-- | Error capture and conversion to Maybe 163-- | Error capture and conversion to Maybe
164mbCatch :: IO x -> IO (Maybe x) 164mbCatch :: IO x -> IO (Maybe x)