diff options
author | Alberto Ruiz <aruiz@um.es> | 2012-03-13 11:21:21 +0100 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2012-03-13 11:21:21 +0100 |
commit | 9c4a8a37291f902312215452d0bdd9ad95408ae9 (patch) | |
tree | 72d468cfa9999dc079466f250883dfb131d016ba /lib/Data/Packed/Internal/Common.hs | |
parent | 6f6455593c0490e4710854b08fc63a2d0993dcac (diff) | |
parent | 032fe19ddfa6e4cfba33f76aaa13043b54568fcf (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.hs | 4 |
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 |
143 | foreign import ccall "asm_finit" finit :: IO () | 143 | foreign import ccall unsafe "asm_finit" finit :: IO () |
144 | 144 | ||
145 | -- | check the error code | 145 | -- | check the error code |
146 | check :: String -> IO CInt -> IO () | 146 | check :: 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 |
161 | foreign import ccall "gsl_strerror" gsl_strerror :: CInt -> IO (Ptr CChar) | 161 | foreign 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 |
164 | mbCatch :: IO x -> IO (Maybe x) | 164 | mbCatch :: IO x -> IO (Maybe x) |