Permalink
Browse files

Use unsafeForeignPtrToPtr from Foreign.ForeignPtr.Unsafe

Export from Foreign.ForeignPtr deprecated as of GHC 7.5
  • Loading branch information...
1 parent a18f44c commit 0b57510ea9db7dc2b26f2c6025e25c34851928b2 @bgamari bgamari committed Feb 19, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 OpenSSL/EVP/Internal.hsc
  2. +2 −1 OpenSSL/X509.hsc
View
3 OpenSSL/EVP/Internal.hsc
@@ -61,7 +61,8 @@ import Foreign.Ptr (Ptr, castPtr, FunPtr)
import Foreign.C.String (peekCStringLen)
import Foreign.ForeignPtr (
ForeignPtr, newForeignPtr, withForeignPtr, addForeignPtrFinalizer,
- mallocForeignPtrBytes, touchForeignPtr, unsafeForeignPtrToPtr)
+ mallocForeignPtrBytes, touchForeignPtr)
+import Foreign.ForeignPtr.Unsafe (unsafeForeignPtrToPtr)
import Foreign.Storable (Storable(..))
import Foreign.Marshal.Alloc (alloca, allocaBytes)
import Foreign.Marshal.Array (allocaArray)
View
3 OpenSSL/X509.hsc
@@ -53,7 +53,8 @@ module OpenSSL.X509
import Control.Monad
import Data.Time.Clock
import Data.Maybe
-import Foreign
+import Foreign hiding (unsafeForeignPtrToPtr)
+import Foreign.ForeignPtr.Unsafe (unsafeForeignPtrToPtr)
import Foreign.C
import OpenSSL.ASN1
import OpenSSL.BIO

0 comments on commit 0b57510

Please sign in to comment.