Commits

Bryan O'Sullivan committed 2a23f38

Mark FFI entry points as unsafe.

They don't block or call back into Haskell. I really wish "safe" and
"unsafe" were better named.

Comments (0)

Files changed (1)

Data/Double/Conversion.hs

       frozen <- A.unsafeFreeze buf
       return $ Text frozen 0 (fromIntegral size)
 
-foreign import ccall safe "hs-double-conversion.h _hs_ToShortestLength"
+foreign import ccall unsafe "hs-double-conversion.h _hs_ToShortestLength"
     c_ToShortestLength :: CInt
 
-foreign import ccall safe "hs-double-conversion.h _hs_ToShortest"
+foreign import ccall unsafe "hs-double-conversion.h _hs_ToShortest"
     c_ToShortest :: CDouble -> MutableByteArray# s -> IO CInt
 
-foreign import ccall safe "hs-double-conversion.h _hs_ToFixedLength"
+foreign import ccall unsafe "hs-double-conversion.h _hs_ToFixedLength"
     c_ToFixedLength :: CInt
 
-foreign import ccall safe "hs-double-conversion.h _hs_ToFixed"
+foreign import ccall unsafe "hs-double-conversion.h _hs_ToFixed"
     c_ToFixed :: CDouble -> MutableByteArray# s -> CInt -> IO CInt
 
-foreign import ccall safe "hs-double-conversion.h _hs_ToExponentialLength"
+foreign import ccall unsafe "hs-double-conversion.h _hs_ToExponentialLength"
     c_ToExponentialLength :: CInt
 
-foreign import ccall safe "hs-double-conversion.h _hs_ToExponential"
+foreign import ccall unsafe "hs-double-conversion.h _hs_ToExponential"
     c_ToExponential :: CDouble -> MutableByteArray# s -> CInt -> IO CInt
 
-foreign import ccall safe "hs-double-conversion.h _hs_ToPrecisionLength"
+foreign import ccall unsafe "hs-double-conversion.h _hs_ToPrecisionLength"
     c_ToPrecisionLength :: CInt
 
-foreign import ccall safe "hs-double-conversion.h _hs_ToPrecision"
+foreign import ccall unsafe "hs-double-conversion.h _hs_ToPrecision"
     c_ToPrecision :: CDouble -> MutableByteArray# s -> CInt -> IO CInt
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.