Skip to content

ghc as a library and`System.Semaphore`

ghc-lib exports module GHC so depends on System.Semaphore from semaphore-compat. the version on hackage, semaphore-compat-1.0.0 has constraints unix (>=2.8.1.0 && <2.9), Win32 (>=2.13.4.0 && <2.14). i find this leaves me unable to build ghc-lib made from ghc HEAD sources with ghc-9.4.x and i suspect not at all on windows.

i've worked around this since march by patching System.Semaphore out of ghc-lib https://github.com/shayne-fletcher/ghc-lib/blob/ab01fb2b4d1e3a9338390e9c10ccd769bbf37aeb/ghc-lib-gen/src/Ghclibgen.hs#L333-L417. the patch is super fragile and though and quite the burden to maintain.

is there anything better can be done?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information