on master help sign in
Fix rawForkIO for GHC-9.3
commit15e9b99523c9a3b0e8b8ec17fafc8f8a8f847941 authorHarendra Kumar <harendra@composewell.com> dateSat 22 Jan 2022, 02:42 (5 years ago) parent7d8ef6c
1 file changed+1−1
src/Streamly/Internal/Control/Concurrent.hs+1−1
src/Streamly/Internal/Control/Concurrent.hs+1−1
@@ -61,7 +61,7 @@ captureMonadState = control $ \run -> run (return $ RunInIO run)
6161-- exception handler.
6262{-# INLINE rawForkIO #-}
6363rawForkIO :: IO () -> IO ThreadId
64−rawForkIO action = IO $ \ s ->
64+rawForkIO (IO action) = IO $ \ s ->
6565 case fork# action s of (# s1, tid #) -> (# s1, ThreadId tid #)
6666
6767-- | Fork a thread to run the given computation, installing the provided