Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use unsafeForeignPtrToPtr from Foreign.ForeignPtr.Unsafe

Export from Foreign.ForeignPtr deprecated as of GHC 7.5
  • Loading branch information...
commit 0b57510ea9db7dc2b26f2c6025e25c34851928b2 1 parent a18f44c
@bgamari bgamari authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  OpenSSL/EVP/Internal.hsc
  2. +2 −1  OpenSSL/X509.hsc
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)
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
Please sign in to comment.
Something went wrong with that request. Please try again.