commercialhaskell / commercialhaskell/stack

Support semaphore-compat 2.0.0

Open
#6,934 3 comments 0 reactions 1 assignee Claimed by @mpilgrem View on GitHub
component: build in progress type: enhancement
Dominant language
Haskell
Stars
4.1k
Forks
850
Avg merge
10h 37m
Merged PRs (30d)
4

Description

Related resources:
* https://well-typed.com/blog/2026/06/haskell-ecosystem-report-march-may-2026/#semaphores-and--jsem
* https://gitlab.haskell.org/ghc/ghc/-/merge_requests/15729
* https://gitlab.haskell.org/ghc/semaphore-compat/-/merge_requests/8
* Cabal (the tool) https://github.com/haskell/cabal/pull/11628

---
Stack no longer compiles with semaphore-compat 2.0.0 (GHC 9.12.5-rc2):

```
[155 of 217] Compiling Stack.Build.ExecuteEnv ( src/Stack/Build/ExecuteEnv.hs, dist/build/Stack/Build/ExecuteEnv.o, dist/build/Stack/Build/ExecuteEnv.dyn_o )
src/Stack/Build/ExecuteEnv.hs:122:22: error: [GHC-61689]
Module ‘System.Semaphore’ does not export ‘Semaphore’.
|
122 | ( Semaphore, destroySemaphore, freshSemaphore )
| ^^^^^^^^^

src/Stack/Build/ExecuteEnv.hs:122:33: error: [GHC-61689]
Module ‘System.Semaphore’ does not export ‘destroySemaphore’.
|
122 | ( Semaphore, destroySemaphore, freshSemaphore )
| ^^^^^^^^^^^^^^^^

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.