2.5. Version 9.6.5

The significant changes to the various parts of the compiler are listed below. See the migration guide on the GHC Wiki for specific guidance on migrating programs to this release.

The LLVM backend of this release is to be used with LLVM 11, 12, 13, 14 or 15.

2.5.1. Significant Changes

Issues fixed in this release include: Compiler

  • Disable -fasm-shortcutting with -O2 as it leads to unsound optimisations (:ghc-ticket:`24462).
  • Fix a typechecker bug resulting in TYPE and CONSTRAINT being apart (#24279).
  • Fix a bug resulting in incorrect runtime results due to a botched simplifier pass (#24295).
  • Assign correct source spans to nested documentation comments in the AST (#24378).
  • Fix a bug causing suboptimal error messages for certain invalid cyclic module graphs with hs-boot files (#24196, #24275).
  • Fix a bug resulting in infix (~) and (@) operators not being usable in TH quotes (#23748).
  • Fix a bug arising from incorrect parsing of paths containing spaces in the settings file (#24265).
  • Allow special pragmas to desugar correctly in a few more cases (#24370). Runtime system

  • Fix an off-by-one while writing eventlogs (#24287).
  • Avoid segfaults with using -Dn with the non-moving collector (#24393). Build system and packaging

  • Fix a bug resulting in the distributed hsc2hs wrapper using flags from the compiler build environment (#24050).
  • Better compatibility for newer alex versions in the configure script (#24302).
  • Handle autotools adding the -std flag to the CC/CXX variables (#24324).
  • Fix a typo in the configure script resulting in the target for the linker being set incorrectly when configuring a cross-compiler (#24414).
  • Do not override existing linker flags in FP_LD_NO_FIXUP_CHAINS.
  • Ensure the genapply program is built with the write constants when cross compiling (#24347).
  • Ensure we take LDFLAGS into account when configuring a linker (#24565).
  • Fix a segfault with the non-moving GC (#24492). Core libraries

  • Bump base to
  • Bump filepath to 1.4.300.1
  • Bump directory to
  • Bump Cabal to
  • Bump process to
  • Bump libffi-tarballs to 3.4.6 Included libraries

The package database provided with this distribution also contains a number of packages other than GHC itself. See the changelogs provided with these packages for further change information.

Package Version Reason for inclusion
ghc 9.6.5 The compiler itself
Cabal-syntax Dependency of ghc-pkg utility
Cabal Dependency of ghc-pkg utility
Win32 Dependency of ghc library
array Dependency of ghc library
base Core library
binary Dependency of ghc library
bytestring Dependency of ghc library
containers 0.6.7 Dependency of ghc library
deepseq Dependency of ghc library
directory Dependency of ghc library
exceptions 0.10.7 Dependency of ghc and haskeline library
filepath 1.4.300.1 Dependency of ghc library
ghc-boot-th 9.6.5 Internal compiler library
ghc-boot 9.6.5 Internal compiler library
ghc-compact Core library
ghc-heap 9.6.5 GHC heap-walking library
ghc-prim 0.10.0 Core library
ghci 9.6.5 The REPL interface
haskeline Dependency of ghci executable
hpc Dependency of hpc executable
integer-gmp 1.1 Core library
libiserv 9.6.5 Internal compiler library
mtl 2.3.1 Dependency of Cabal library
parsec Dependency of Cabal library
pretty Dependency of ghc library
process Dependency of ghc library
stm Dependency of haskeline library
template-haskell Core library
terminfo Dependency of haskeline library
text 2.0.2 Dependency of Cabal library
time 1.12.2 Dependency of ghc library
transformers Dependency of ghc library
unix Dependency of ghc library
xhtml 3000.2.2.1 Dependency of haddock executable