2.1. Version 9.8.1

2.1.1. Language

2.1.2. Compiler

  • Added a new warning -Wterm-variable-capture that helps to make code compatible with the future extension RequiredTypeArguments.

  • Rewrite rules now support a limited form of higher order matching when a pattern variable is applied to distinct locally bound variables. For example:

    forall f. foo (\x -> f x)
    

    Now matches:

    foo (\x -> x*2 + x)
    

2.1.3. GHCi

2.1.4. Runtime system

  • On POSIX systems that support timerfd, RTS shutdown no longer has to wait for the next RTS ‘tick’ to occur before continuing the shutdown process. See #22692.

2.1.5. base library

2.1.6. ghc-prim library

2.1.7. ghc library

2.1.8. ghc-heap library

2.1.8.1. 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.7 The compiler itself
Cabal-syntax 3.9.0.0 Dependency of ghc-pkg utility
Cabal 3.9.0.0 Dependency of ghc-pkg utility
Win32 2.13.3.0 Dependency of ghc library
array 0.5.4.0 Dependency of ghc library
base 4.18.0.0 Core library
binary 0.8.9.1 Dependency of ghc library
bytestring 0.11.4.0 Dependency of ghc library
containers 0.6.7 Dependency of ghc library
deepseq 1.4.8.0 Dependency of ghc library
directory 1.3.8.0 Dependency of ghc library
exceptions 0.10.7 Dependency of ghc and haskeline library
filepath 1.4.100.0 Dependency of ghc library
ghc-boot-th 9.7 Internal compiler library
ghc-boot 9.7 Internal compiler library
ghc-compact 0.1.0.0 Core library
ghc-heap 9.7 GHC heap-walking library
ghc-prim 0.10.0 Core library
ghci 9.7 The REPL interface
haskeline 0.8.2 Dependency of ghci executable
hpc 0.6.2.0 Dependency of hpc executable
integer-gmp 1.1 Core library
libiserv 9.7 Internal compiler library
mtl 2.3.1 Dependency of Cabal library
parsec 3.1.16.1 Dependency of Cabal library
pretty 1.1.3.6 Dependency of ghc library
process 1.6.16.0 Dependency of ghc library
stm 2.5.1.0 Dependency of haskeline library
template-haskell 2.20.0.0 Core library
terminfo 0.4.1.5 Dependency of haskeline library
text 2.0.1 Dependency of Cabal library
time 1.12.2 Dependency of ghc library
transformers 0.6.0.6 Dependency of ghc library
unix 2.8.0.0 Dependency of ghc library
xhtml 3000.2.2.1 Dependency of haddock executable