# GHC 9.2.4 released

**URL:** <https://discourse.haskell.org/t/ghc-9-2-4-released/4851>\
**Category:** Announcements\
**Created:** [July 28, 2022, 11:19am UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851 "2022-07-28T11:19:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![wz1000](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/wz1000/32/1245_2.png) [@wz1000](https://discourse.haskell.org/u/wz1000)\
**Post date:** [July 28, 2022, 11:19am UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851/1 "2022-07-28T11:19:38Z")

</div>

The GHC developers are very happy to at announce the availability of GHC  
9.2.4. Binary distributions, source distributions, and documentation are  
available at [`downloads.haskell.org`](https://downloads.haskell.org/ghc/9.2.4).

Download Page: [GHC 9.2.4 download — The Glasgow Haskell Compiler](https://www.haskell.org/ghc/download_ghc_9_2_4.html)  
Blog Post: [GHC 9.2.4 is now available — The Glasgow Haskell Compiler](https://www.haskell.org/ghc/blog/20220728-ghc-9.2.4-released.html)

This release will include:

- The new `DeepSubsumption` language extension which reverses the  
effects of the [Simplified Subsumption Proposal](https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0287-simplify-subsumption.rst) introduced in GHC 9.0. This  
is an attempt to make GHC 9.2.4 more backwards compatible with GHC 8.10 and  
eases migration for users who depended on this feature.

- Fixes for segfaults that may arise due to a bug in the implementation of the  
`keepAlive#` primop. This may regress performance for certain programs which  
use this primop or functions which use the primop, such as `withForeignPtr`.  
These regressions are mostly small, but can be larger in certain edge cases.  
Judicious use of `unsafeWithForeignPtr` when its argument is known not to  
statically diverge can mitigate these in many cases. It is our judgment that  
the critical correctness issues justify the regression in performance and that  
it is important to get a release out with the fix while we work on a better  
approach which will improve performance for future releases (#21708).

- Fixes for a number of miscompilations on AArch64 and other platforms (#21624,  
#21773, #20735, #21685).

- Fixes for segfaults due to bugs in the RTS and GC (#21708, #21880, #21885).

- Fixing the behaviour of Ctrl-C with GHCi on Windows (#21889).

- … and much more. See the [release notes](https://downloads.haskell.org/~ghc/9.2.4/docs/html/users_guide/9.2.4-notes.html) for a full accounting.

As some of the fixed issues do affect correctness users are encouraged to  
upgrade promptly.

We would like to thank Microsoft Azure, GitHub, IOG, the Zw3rk  
stake pool, Tweag I/O, Serokell, Equinix, SimSpace, Haskell Foundation, and other anonymous  
contributors whose on-going financial and in-kind support has  
facilitated GHC maintenance and release management over the years.  
Finally, this release would not have been possible without the hundreds  
of open-source contributors whose work comprise this release.

As always, do give this release a try and open a [ticket](https://gitlab.haskell.org/ghc/ghc/-/issues/new) if you see  
anything amiss.

Happy compiling,

- Zubin

---

<div class="post-metadata">

**Author:** ![jaror](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/jaror/32/3271_2.png) [@jaror](https://discourse.haskell.org/u/jaror)\
**Post date:** [July 28, 2022, 11:23am UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851/2 "2022-07-28T11:23:37Z")

</div>

I’ve removed the [Haskell] and [ANNOUNCE] from the tile and recategorized this in the announcement category. I hope you don’t mind, otherwise please let me know.

Update: I also fixed the release notes link, it was missing `.../html/...`.

---

<div class="post-metadata">

**Author:** ![Abab9579](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/abab9579/32/2163_2.png) [@Abab9579](https://discourse.haskell.org/u/Abab9579)\
**Post date:** [July 28, 2022, 12:41pm UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851/3 "2022-07-28T12:41:20Z")

</div>

Finally! I could perhaps update my window manager to the newest GHC.

---

<div class="post-metadata">

**Author:** ![janus](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/janus/32/1060_2.png) [@janus](https://discourse.haskell.org/u/janus)\
**Post date:** [July 28, 2022, 7:37pm UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851/4 "2022-07-28T19:37:54Z")

</div>

Issues from the OP linked to Gitlab:

- keepAlive: [21708](https://gitlab.haskell.org/ghc/ghc/-/issues/21708)
- Miscompilations: [21624](https://gitlab.haskell.org/ghc/ghc/-/issues/21624), [21773](https://gitlab.haskell.org/ghc/ghc/-/issues/21773), [20735](https://gitlab.haskell.org/ghc/ghc/-/issues/20735), [21685](https://gitlab.haskell.org/ghc/ghc/-/issues/21685)
- Segfaults RTS/GC: [21708](https://gitlab.haskell.org/ghc/ghc/-/issues/21708), [21880](https://gitlab.haskell.org/ghc/ghc/-/issues/21880), [21885](https://gitlab.haskell.org/ghc/ghc/-/issues/21885)
- Ctrl-C with GHCi on Windows: [21889](https://gitlab.haskell.org/ghc/ghc/-/issues/21889)

---

<div class="post-metadata">

**Author:** ![Nycticorax](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/nycticorax/32/834_2.png) [@Nycticorax](https://discourse.haskell.org/u/Nycticorax)\
**Post date:** [July 29, 2022, 7:32am UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851/5 "2022-07-29T07:32:45Z")

</div>

> [@wz1000](#):
>
> The new `DeepSubsumption` language extension which reverses the  
> effects of the [Simplified Subsumption Proposal](https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0287-simplify-subsumption.rst) introduced in GHC 9.0

I giggled when I saw that.

---

<div class="post-metadata">

**Author:** ![robx](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/robx/32/1900_2.png) [@robx](https://discourse.haskell.org/u/robx)\
**Post date:** [August 3, 2022, 4:36pm UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851/6 "2022-08-03T16:36:23Z")

</div>

Not sure this is the best place to note this, but the “Release notes” link is also broken in the linked blog post at [GHC 9.2.4 is now available — The Glasgow Haskell Compiler](https://www.haskell.org/ghc/blog/20220728-ghc-9.2.4-released.html).

Also the “latest” documentation at [Welcome to the GHC User’s Guide — Glasgow Haskell Compiler 9.2.2 User's Guide](https://downloads.haskell.org/ghc/latest/docs/html/users_guide/) appears to be version 9.2.2 still.

---

<div class="post-metadata">

**Author:** ![Abab9579](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/abab9579/32/2163_2.png) [@Abab9579](https://discourse.haskell.org/u/Abab9579)\
**Post date:** [August 9, 2022, 8:09am UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851/7 "2022-08-09T08:09:46Z")

</div>

Where can I ask about HLS support for GHC 9.2.4? At least it is not available in `ghcup`. Is it available on `master` branch, at least?

---

<div class="post-metadata">

**Author:** ![jaror](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/jaror/32/3271_2.png) [@jaror](https://discourse.haskell.org/u/jaror)\
**Post date:** [August 9, 2022, 9:01am UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851/8 "2022-08-09T09:01:06Z")

</div>

Apparently you can compile HLS yourself (using GHCup) from the master branch. See [this comment in the haskell-language-server repo](https://github.com/haskell/haskell-language-server/issues/2985#issuecomment-1200118053).

---

<div class="post-metadata">

**Author:** ![CarstenK](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/carstenk/32/2087_2.png) [@CarstenK](https://discourse.haskell.org/u/CarstenK)\
**Post date:** [August 9, 2022, 9:31am UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851/9 "2022-08-09T09:31:42Z")

</div>

I’m sure somebody knows exactly why and when it does but for me building _hls_ with `ghcup` seemed to work only randomly (I think I tested this last with ghc-9.2.3 where it did not work for me - as far as I can remember some dependencies could not be resolved - my hunch was to wait a bit and retry but hey in the meantime we’ve got another ghc release 😉 )

EDIT: it’s still compiling but it looks good for `9.2.4`:

```
ghcup compile hls -g master --ghc 9.2.4 --cabal-update

```

in case someone wants the command (`ghcup` will give something very close in the help/examples if you ask it to - so not sure if it’s actually relevant)

EDIT2: yes it did work 👍 thanks for this great tool.

---

<div class="post-metadata">

**Author:** ![hasufell](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.haskell.org/hasufell/32/1250_2.png) [@hasufell](https://discourse.haskell.org/u/hasufell)\
**Post date:** [August 9, 2022, 10:00am UTC](https://discourse.haskell.org/t/ghc-9-2-4-released/4851/10 "2022-08-09T10:00:01Z")

</div>

This is also documented here: [https://www.haskell.org/ghcup/guide/#hls](https://www.haskell.org/ghcup/guide/#hls)
