Changeset 14219 for third-party
- Timestamp:
- 10/11/06 05:36:48 (2 years ago)
- Files:
-
- 1 modified
-
third-party/HsJudy/Judy/Refeable.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
third-party/HsJudy/Judy/Refeable.hs
r12571 r14219 23 23 class Refeable a where 24 24 toRef :: a -> IO Value 25 toRef = GC.newRef 25 26 fromRef :: Value -> IO a 27 fromRef = deRefStablePtr . castPtrToStablePtr . wordPtrToPtr 26 28 needGC :: a -> Bool 29 needGC _ = True 27 30 28 31 --instance Dummy a => Refeable a where 29 32 instance Refeable a where 30 toRef = GC.newRef31 fromRef v = do32 a <- deRefStablePtr (castPtrToStablePtr (wordPtrToPtr v))33 return a34 needGC _ = True35 33 36 34 instance Refeable Int where
