Fix 9.2.2 windows bindist
See https://community.chocolatey.org/packages/ghc#files or https://github.com/haskell/haskell-language-server/blob/8cbefb71bc3aff7c19d4874607b6a374f2307fc3/.gitlab/ci.sh#L55-L56
if (-Not $is32 -and -not $pp['no-workarounds']) {
# HACK: Work around that GHC 9.2.x is missing some components
# See each individual ticket.
Write-Host "`nApplying workarounds for GHC 9.2.2: `
* Broken depencencies: https://gitlab.haskell.org/ghc/ghc/-/issues/21196 `
`
These workarounds do not change the compiler only the packaging, to disable re-run with --params=`"'/no-workarounds'`"`n"
# Copy DLLs to the bin folder to satisfy the loader
$mingwBin = Join-Path $packageFullName "mingw\bin\"
Copy-Item (Join-Path $mingwBin "libgcc_s_seh-1.dll") $binPackageDir
Copy-Item (Join-Path $mingwBin "libwinpthread-1.dll") $binPackageDir
}
Edited by Julian Ospald