GHC 9.14.2 is finally available!

The GHC developers are very pleased to finally announce the release
of GHC 9.14.2. Binary distributions, source distributions, and
documentation are available at downloads.haskell.org and via
GHCup.

GHC 9.14.2 is a bug-fix release fixing many issues of a variety of
severities and scopes, including:

  • Version 2 of the GHC Jobserver Protocol for GHC’s -jsem
    jobserver on Linux and other POSIX platforms (#25087, #27253). This is sadly
    a necessary breaking change: -jsem requires cabal-install 3.18 or later,
    and is otherwise ignored with a warning, falling back to
    sequential compilation.
  • A new deprecation warning for static forms that mention nested let-bound
    variables. This will become an error in GHC 10.0
    (GHC Proposal #732, #26718).
  • Fixes for a number of miscompilations causing incorrect runtime results,
    crashes or hangs, in CorePrep (#25924), demand analysis (#26416), the
    specialiser (#27626, #27627, #27629, #27703, #27704, #27705, #27717), and
    with strict fields (#27831, #27857).
  • Numerous fixes for register allocation and Cmm register-conflict analysis
    bugs, preventing incorrect code generation and corruption of vector registers
    when spilling and reloading (#26411, #26526, #26537, #26542, #26550, #26668).
  • Many NCG fixes on AArch64, including MOVK clobbering live values (#26980),
    register clobbering and an incorrect overflow bit in MUL2 (#27046, #27047),
    and incorrect results from subword operations (#26978, #26979, #27430,
    #27533, #27537, #27538, #27539, #27550).
  • A fix for a stack alignment bug on x86 that could cause segfaults or corrupted
    registers when using AVX/AVX-512 vector code (#26595, #26822).
  • Fixes for several black hole handling bugs that could lead to deadlocks or
    crashes in multithreaded programs, showing up as hangs or “END_TSO_QUEUE
    object entered” errors (#26922, #26936).
  • A fix for a missing memory barrier in the parallel garbage collector, which
    could crash or silently corrupt the heap on weakly-ordered architectures such
    as AArch64 (#27477).
  • Fixes for many other runtime system crashes and races, including in the
    compacting (#27434, #27649) and nonmoving (#23160) garbage collectors
    (#26341, #26573, #26640, #26716, #26717, #27007, #27008, #27009, #27082,
    #27272, #27618, #27633, #27651).
  • Fixes for split sections on Windows (#26696, #26494) and the LLVM
    backend (#26770), and support for LLVM up to version 23 (#27764).
  • Fixes for the Wasm backend (#26916, #27257), and the RISC-V (#27300, #27303,
    #27306) and PowerPC (#23969, #24145, #26828) native code generators.
  • The JavaScript backend now supports more than 128 registers, fixing runtime
    ReferenceError failures for functions taking very many arguments (#26558).
  • Correctness and performance improvements in the bytecode interpreter
    (#12953, #26287, #26946, #26995, #27001, #27842).
  • Fixes for several compiler panics, including issues with SetLevels (#26681),
    the type-class specialiser (#26682), mkTick (#26772, #27121), CoreToStg
    (#27182, #27386), the pattern-match checker (#25926, #27124), module graph
    reachability (#26568), continuation trimming for bottoming functions
    (#27261), and setInfoTableStackMap (#27368).
  • Fixes for several cases where the compiler could hang or loop, including with
    negative type literals (#26861), deep subsumption (#26823), and when
    simplifying the right-hand sides of rewrite rules (#26323, #26826).
  • A fix for exponential-time desugaring of nested case expressions
    (#27383, #20251).
  • A fix for a regression that caused overloaded functions to no longer be
    specialised as effectively as in previous releases, hurting runtime
    performance (#26831).
  • A fix for associated type family and data family instance changes not
    triggering recompilation (#26183, #26705).
  • Reduced memory usage with multiple home units
    (#26423, #27308, #27500, #27748).
  • Fixes for Explicit Level Imports and Template Haskell staging
    (#26088, #26098, #26099, #26616, #27385).
  • Improvements to determinism of compiler output, including the order in which
    :info lists instances (#26846, #26858, #26877, #27532).
  • Exception context is now preserved in more places in base, including
    toException for SomeException, catchSTM, modifyIOError,
    mapException and several Handle operations
    (#27455, #27657, #27456, CLC #446, CLC #447).
  • Additions for GHCi and GHC API users: the -fimport-loaded-targets flag
    (#26866), custom external interpreter commands (#26652), decodeStackWithIpe
    and related stack-decoding helpers (#27065), an optional SrcLoc on
    StackAnnotation (#26806), and a gc_sync_elapsed_ns counter in
    RTSStats (#26944).
  • … and many more.

A full accounting of these fixes can be found in the release notes. As
always, GHC’s release status, including planned future releases, can be found on
the GHC Wiki status.

GHC development is sponsored by:

We would like to thank these sponsors 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, happy hacking! Do give this release a try and open a ticket if
you see anything amiss.

28 Likes