2.1. Version 9.4.6

The significant changes to the various parts of the compiler are listed in the following sections.

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

2.1.1. Significant Changes

Issues fixed in this release include: Compiler

  • Fix a bug where certain dictionaries for undecidable instances could end up looping at runtime (%s22549).
  • Fix a compiler panic involving newtype family instances (:ghc-ticket:`23329).
  • Fix a bug preventing using the command line to compile .cmm files to assembly (%s23610).
  • Fix compiler panics with certain RULE pragmas (%s23208, %s22761).
  • Fix a loop in the simplifier due to a bug in the representation of certain fields in interface files (%s22272).
  • Make type equality (~) checks in the presence of quantified contrains more robust to argument ordering (%s23333).
  • Fix some segfaults when using UnliftedDataTypes (%s23231, %s23146).
  • Improve bounds checking with -fcheck-prim-bounds (%s21054).
  • Fix a bug in the simplifier leading to core lint errors (%s23012).
  • Ensure array read operations have proper memory barries (%s23541).
  • Fix a spurious -dcore-lint failure with certain kinds of type family instances (%s22547).
  • Fix a bug with .hie files containing spurious references to generated functions in files with partial field selectors (%s23492).
  • With the aarch64 backend, fix a bug arising from lack of zero-extension for 8/16 bit add/sub with immediate (%s23749).
  • Fix a number of bugs having to do with default representation polymorphic type variables (%s23153, %s23154, %s23176). GHCi and Bytecode Interpreter

  • Add support for top-level Addr# literals (%s22376)
  • Fix some tag inference bugs when using the bytecode interpreter (%s22840).
  • Support the foreign import prim calling convention in the bytecode interpreter (%s22051).
  • Support sized literals in the bytecode interpreter (%s21945).
  • Fix a bug with the handling of unboxed tuples in the bytecode interpreter (%s23068).
  • Make the bytecode interpreter more robust when run on optimised code (%s22958) Runtime system

  • Accurately account for mutator allocations when using the non-moving GC (%s23312).
  • Prevent some segfaults by ensuring that pinned allocations respect block size (%s23400).
  • Fix warnings with clang 14.0.3 (%s23561).
  • On Windows, ensure reliability of IO manager shutdown (%s23691).
  • Fix a bug with the GHC linker on windows (%s22941). Build system and packaging

  • Allow building documentation with sphinx 6.0.0 (%s22690).
  • Fix a bug with the install scripts that prevented reinstallation of binary distributions (%s23373).
  • Fix some dependency tracking bugs with hadrian (%s23554). Core libraries

  • Bump base to
  • base: Restore``mingwex`` dependency on Windows (%s23309).
  • Bump process to
  • Bump bytestring to 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.4.6 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.5 Dependency of ghc and haskeline library
filepath Dependency of ghc library
ghc-boot-th 9.4.6 Internal compiler library
ghc-boot 9.4.6 Internal compiler library
ghc-compact Core library
ghc-heap 9.4.6 GHC heap-walking library
ghc-prim 0.9.1 Core library
ghci 9.4.6 The REPL interface
haskeline 0.8.2 Dependency of ghci executable
hpc Dependency of hpc executable
integer-gmp 1.1 Core library
libiserv 9.4.6 Internal compiler library
mtl 2.2.2 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 2.7.3 Dependency of ghc library
xhtml 3000.2.2.1 Dependency of haddock executable