projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2000-05-01 14:53:47 by panne]
[ghc-hetmet.git]
/
ghc
/
lib
/
std
/
PrelStable.lhs
diff --git
a/ghc/lib/std/PrelStable.lhs
b/ghc/lib/std/PrelStable.lhs
index
8f6053d
..
7de5666
100644
(file)
--- a/
ghc/lib/std/PrelStable.lhs
+++ b/
ghc/lib/std/PrelStable.lhs
@@
-1,5
+1,5
@@
% -----------------------------------------------------------------------------
% -----------------------------------------------------------------------------
-% $Id: PrelStable.lhs,v 1.5 2000/04/14 15:28:24 rrt Exp $
+% $Id: PrelStable.lhs,v 1.6 2000/05/01 14:53:47 panne Exp $
%
% (c) The GHC Team, 1992-1999
%
%
% (c) The GHC Team, 1992-1999
%
@@
-27,7
+27,7
@@
instance CReturnable (StablePtr a)
makeStablePtr :: a -> IO (StablePtr a)
deRefStablePtr :: StablePtr a -> IO a
makeStablePtr :: a -> IO (StablePtr a)
deRefStablePtr :: StablePtr a -> IO a
-foreign import "freeStablePtr" freeStablePtr :: StablePtr a -> IO ()
+foreign import "freeStablePtr" unsafe freeStablePtr :: StablePtr a -> IO ()
makeStablePtr a = IO $ \ s ->
case makeStablePtr# a s of (# s', sp #) -> (# s', StablePtr sp #)
makeStablePtr a = IO $ \ s ->
case makeStablePtr# a s of (# s', sp #) -> (# s', StablePtr sp #)