Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
fendor
head.hackage
Commits
a9bd5dab
Commit
a9bd5dab
authored
Jun 29, 2021
by
Ryan Scott
Browse files
Merge branch 'forkOn' into 'master'
Adapt to forkOn#'s new type See merge request
ghc/head.hackage!166
parents
3b96c7f8
7fd3a472
Pipeline
#37748
failed with stages
in 170 minutes and 11 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
patches/async-2.2.3.patch
View file @
a9bd5dab
diff --git a/Control/Concurrent/Async.hs b/Control/Concurrent/Async.hs
index 064a262..
f962a61
100644
index 064a262..
16c772c
100644
--- a/Control/Concurrent/Async.hs
+++ b/Control/Concurrent/Async.hs
@@ -959,
7
+959,1
3
@@
tryAll = try
@@ -959,
9
+959,
2
1 @@
tryAll = try
{-# INLINE rawForkIO #-}
rawForkIO :: IO () -> IO ThreadId
rawForkIO action = IO $ \ s ->
...
...
@@ -17,3 +17,12 @@ index 064a262..f962a61 100644
{-# INLINE rawForkOn #-}
rawForkOn :: Int -> IO () -> IO ThreadId
rawForkOn (I# cpu) action = IO $ \ s ->
- case (forkOn# cpu action s) of (# s1, tid #) -> (# s1, ThreadId tid #)
+ case (forkOn# cpu
+#if __GLASGOW_HASKELL__ >= 903
+ (unIO action)
+#else
+ action
+#endif
+ s) of (# s1, tid #) -> (# s1, ThreadId tid #)
patches/async-pool-0.9.1.patch
View file @
a9bd5dab
diff --git a/Control/Concurrent/Async/Pool/Async.hs b/Control/Concurrent/Async/Pool/Async.hs
index be4e7c0..
dda2ea4
100644
index be4e7c0..
7d189d1
100644
--- a/Control/Concurrent/Async/Pool/Async.hs
+++ b/Control/Concurrent/Async/Pool/Async.hs
@@ -711,
7
+711,1
3
@@
tryAll = try
@@ -711,
9
+711,
2
1 @@
tryAll = try
{-# INLINE rawForkIO #-}
rawForkIO :: IO () -> IO ThreadId
rawForkIO action = IO $ \ s ->
...
...
@@ -17,3 +17,12 @@ index be4e7c0..dda2ea4 100644
{-# INLINE rawForkOn #-}
rawForkOn :: Int -> IO () -> IO ThreadId
rawForkOn (I# cpu) action = IO $ \ s ->
- case (forkOn# cpu action s) of (# s1, tid #) -> (# s1, ThreadId tid #)
+ case (forkOn# cpu
+#if __GLASGOW_HASKELL__ >= 903
+ (unIO action)
+#else
+ action
+#endif
+ s) of (# s1, tid #) -> (# s1, ThreadId tid #)
patches/hspec-core-2.8.2.patch
View file @
a9bd5dab
diff --git a/vendor/Control/Concurrent/Async.hs b/vendor/Control/Concurrent/Async.hs
index 81c3e69..
d11e944
100644
index 81c3e69..
199c5bd
100644
--- a/vendor/Control/Concurrent/Async.hs
+++ b/vendor/Control/Concurrent/Async.hs
@@ -862,
7
+862,1
3
@@
tryAll = try
@@ -862,
9
+862,
2
1 @@
tryAll = try
{-# INLINE rawForkIO #-}
rawForkIO :: IO () -> IO ThreadId
rawForkIO action = IO $ \ s ->
...
...
@@ -17,3 +17,12 @@ index 81c3e69..d11e944 100644
{-# INLINE rawForkOn #-}
rawForkOn :: Int -> IO () -> IO ThreadId
rawForkOn (I# cpu) action = IO $ \ s ->
- case (forkOn# cpu action s) of (# s1, tid #) -> (# s1, ThreadId tid #)
+ case (forkOn# cpu
+#if __GLASGOW_HASKELL__ >= 903
+ (unIO action)
+#else
+ action
+#endif
+ s) of (# s1, tid #) -> (# s1, ThreadId tid #)
patches/hspec-meta-2.7.8.patch
View file @
a9bd5dab
...
...
@@ -12,10 +12,10 @@ index f0a3585..79b71b1 100644
import GHC.IO.Exception
import Control.Exception
diff --git a/hspec-core/vendor/Control/Concurrent/Async.hs b/hspec-core/vendor/Control/Concurrent/Async.hs
index d968934..
c552c11
100644
index d968934..
4aa8c90
100644
--- a/hspec-core/vendor/Control/Concurrent/Async.hs
+++ b/hspec-core/vendor/Control/Concurrent/Async.hs
@@ -862,
7
+862,1
3
@@
tryAll = try
@@ -862,
9
+862,
2
1 @@
tryAll = try
{-# INLINE rawForkIO #-}
rawForkIO :: IO () -> IO ThreadId
rawForkIO action = IO $ \ s ->
...
...
@@ -30,6 +30,15 @@ index d968934..c552c11 100644
{-# INLINE rawForkOn #-}
rawForkOn :: Int -> IO () -> IO ThreadId
rawForkOn (I# cpu) action = IO $ \ s ->
- case (forkOn# cpu action s) of (# s1, tid #) -> (# s1, ThreadId tid #)
+ case (forkOn# cpu
+#if __GLASGOW_HASKELL__ >= 903
+ (unIO action)
+#else
+ action
+#endif
+ s) of (# s1, tid #) -> (# s1, ThreadId tid #)
diff --git a/hspec-discover/src/Test/Hspec/Discover/Run.hs b/hspec-discover/src/Test/Hspec/Discover/Run.hs
index f95879b..2f87b9e 100644
--- a/hspec-discover/src/Test/Hspec/Discover/Run.hs
...
...
patches/threads-0.5.1.6.patch
View file @
a9bd5dab
diff --git a/Control/Concurrent/Raw.hs b/Control/Concurrent/Raw.hs
index 58dbf8e..
02b7c69
100644
index 58dbf8e..
729bd2c
100644
--- a/Control/Concurrent/Raw.hs
+++ b/Control/Concurrent/Raw.hs
@@ -1,3 +1,4 @@
...
...
@@ -7,7 +7,7 @@ index 58dbf8e..02b7c69 100644
{-# LANGUAGE NoImplicitPrelude, MagicHash, UnboxedTuples #-}
module Control.Concurrent.Raw ( rawForkIO, rawForkOn ) where
@@ -7,1
3
+8,
2
3 @@
import GHC.IO ( IO(IO) )
@@ -7,1
5
+8,3
1
@@
import GHC.IO ( IO(IO) )
import GHC.Exts ( Int(I#), fork#, forkOn# )
import GHC.Conc ( ThreadId(ThreadId) )
...
...
@@ -32,3 +32,12 @@ index 58dbf8e..02b7c69 100644
{-# INLINE rawForkOn #-}
rawForkOn :: Int -> IO () -> IO ThreadId
rawForkOn (I# cpu) action = IO $ \s ->
- case (forkOn# cpu action s) of (# s1, tid #) -> (# s1, ThreadId tid #)
+ case (forkOn# cpu
+#if __GLASGOW_HASKELL__ >= 903
+ (unIO action)
+#else
+ action
+#endif
+ s) of (# s1, tid #) -> (# s1, ThreadId tid #)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment