jwiegley / async-pool

Other
21 stars 13 forks source link

fails with ghc-9.4 for Stackage Nightly #28

Closed juhp closed 1 year ago

juhp commented 1 year ago
Building library for async-pool-0.9.1..                                                                                  [30/182284]
[1 of 3] Compiling Control.Concurrent.Async.Pool.Async                                                                              

/var/stackage/work/unpack-dir/unpacked/async-pool-0.9.1-525b46e6a39c80b7461e8cd146d540c27d47abc717b746ff34c21aa9b1c47743/Control/Con
current/Async/Pool/Async.hs:714:16: error:
    • Couldn't match expected type: State# RealWorld                                                                                
                                    -> (# State# RealWorld, a1 #)                                                                   
                  with actual type: IO ()                         
    • In the first argument of ‘fork#’, namely ‘action’                                                                             
      In the expression: fork# action s                           
      In the expression:                                          
        case (fork# action s) of (# s1, tid #) -> (# s1, ThreadId tid #)                                                            
    |                                                             
714 |    case (fork# action s) of (# s1, tid #) -> (# s1, ThreadId tid #)                                                           
    |                ^^^^^^                                       

/var/stackage/work/unpack-dir/unpacked/async-pool-0.9.1-525b46e6a39c80b7461e8cd146d540c27d47abc717b746ff34c21aa9b1c47743/Control/Con
current/Async/Pool/Async.hs:719:22: error:
    • Couldn't match expected type: State# RealWorld                                                                                
                                    -> (# State# RealWorld, a0 #)                                                                   
                  with actual type: IO ()                         
    • In the second argument of ‘forkOn#’, namely ‘action’                                                                          
      In the expression: forkOn# cpu action s                                                                                       
      In the expression:                                          
        case (forkOn# cpu action s) of                            
          (# s1, tid #) -> (# s1, ThreadId tid #)                                                                                   
    |                                                             
719 |    case (forkOn# cpu action s) of (# s1, tid #) -> (# s1, ThreadId tid #)                                                     
    |                      ^^^^^^              
juhp commented 1 year ago

Thank you! Hopefully there will be a release coming :)