File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed
src/Control/Distributed/Process/Internal Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ Library
51
51
data-accessor >= 0.2 && < 0.3 ,
52
52
bytestring >= 0.9 && < 0.11 ,
53
53
random >= 1.0 && < 1.2 ,
54
- ghc-prim >= 0.2 && < 0.6 ,
55
54
distributed-static >= 0.2 && < 0.4 ,
56
55
rank1dynamic >= 0.1 && < 0.4 ,
57
56
syb >= 0.3 && < 0.7 ,
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ import Data.Maybe (fromJust)
48
48
import Data.Traversable (traverse )
49
49
import GHC.MVar (MVar (MVar ))
50
50
import GHC.IO (IO (IO ), unIO )
51
- import GHC.Prim (mkWeak #)
51
+ import GHC.Exts (mkWeak #)
52
52
import GHC.Weak (Weak (Weak ))
53
53
54
54
-- We use a TCHan rather than a Chan so that we have a non-blocking read
@@ -266,7 +266,7 @@ dequeue (CQueue arrived incoming size) blockSpec matchons = mask_ $ decrementJus
266
266
-- | Weak reference to a CQueue
267
267
mkWeakCQueue :: CQueue a -> IO () -> IO (Weak (CQueue a ))
268
268
mkWeakCQueue m@ (CQueue (StrictMVar (MVar m# )) _ _) f = IO $ \ s ->
269
- #if MIN_VERSION_ghc_prim(0,5 ,0)
269
+ #if MIN_VERSION_base(4,9 ,0)
270
270
case mkWeak# m# m (unIO f) s of (# s1, w # ) -> (# s1, Weak w # )
271
271
#else
272
272
case mkWeak# m# m f s of (# s1, w # ) -> (# s1, Weak w # )
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import qualified Control.Concurrent.MVar as MVar
37
37
)
38
38
import GHC.MVar (MVar (MVar ))
39
39
import GHC.IO (IO (IO ), unIO )
40
- import GHC.Prim (mkWeak #)
40
+ import GHC.Exts (mkWeak #)
41
41
import GHC.Weak (Weak (Weak ))
42
42
43
43
newtype StrictMVar a = StrictMVar (MVar. MVar a )
@@ -86,7 +86,7 @@ modifyMVarMasked (StrictMVar v) f =
86
86
87
87
mkWeakMVar :: StrictMVar a -> IO () -> IO (Weak (StrictMVar a ))
88
88
mkWeakMVar q@ (StrictMVar (MVar m# )) f = IO $ \ s ->
89
- #if MIN_VERSION_ghc_prim(0,5 ,0)
89
+ #if MIN_VERSION_base(4,9 ,0)
90
90
case mkWeak# m# q (unIO f) s of (# s', w # ) -> (# s', Weak w # )
91
91
#else
92
92
case mkWeak# m# q f s of (# s', w # ) -> (# s', Weak w # )
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import Prelude hiding (read)
24
24
import GHC.Conc
25
25
import Data.Typeable (Typeable )
26
26
import GHC.IO (IO (IO ), unIO )
27
- import GHC.Prim (mkWeak #)
27
+ import GHC.Exts (mkWeak #)
28
28
import GHC.Weak (Weak (Weak ))
29
29
30
30
--------------------------------------------------------------------------------
@@ -100,7 +100,7 @@ isEmptyTQueue (TQueue read write) = do
100
100
101
101
mkWeakTQueue :: TQueue a -> IO () -> IO (Weak (TQueue a ))
102
102
mkWeakTQueue q@ (TQueue _read (TVar write# )) f = IO $ \ s ->
103
- #if MIN_VERSION_ghc_prim(0,5 ,0)
103
+ #if MIN_VERSION_base(4,9 ,0)
104
104
case mkWeak# write# q (unIO f) s of (# s', w # ) -> (# s', Weak w # )
105
105
#else
106
106
case mkWeak# write# q f s of (# s', w # ) -> (# s', Weak w # )
You can’t perform that action at this time.
0 commit comments