Base package: Difference between revisions

From HaskellWiki
m (Add 8.0.2 -> 4.9.1.0)
m (add whitespace to improve legibility)
 
(31 intermediate revisions by 9 users not shown)
Line 1: Line 1:
The '''base package''' contains the [[Prelude]] and its support libraries, and a large collection of useful libraries ranging from data structures to parsing combinators and debugging utilities.  It is specific to the GHC implementation of Haskell.
The '''base package''' contains the [[Prelude]] and its support libraries, and a large collection of useful libraries ranging from data structures to parsing combinators and debugging utilities.  It is specific to the GHC implementation of Haskell.
 
It includes  
This package includes the following:
[[Arrays]],
 
[[Arrow]]s,
*[[Arrays]]
[[Functor]]s,
 
[[Maybe]],
*[[Arrow]]s
[[Monad]]s
 
*[[Functor]]s
 
*[[Maybe]]
 
*[[Monad]]s
 
and many others.
and many others.


== Versions ==
== Versions ==


The base package is shipped alongside the GHC compiler itself, but version numbers for the base package do not match the GHC version number. Here is a table indicating which base package versions ship with which GHC. Data is taken from GHC release notes, and, since base 4.7.0.0, the changelog.md file in the base package's source code. Only GHC versions in which the base package's version number was bumped are listed here. (Last updated Nov 2016.)
The [https://hackage.haskell.org/package/base base] package is shipped alongside the GHC compiler, and each GHC version requires that specific version of the base package. So to declare which GHC versions a cabal package builds with, you can set corresponding bounds on the base package.
 
But version numbers for base do not match the GHC version number.
Here is a partial list of which version of the base package was shipped with each GHC release.
For more details, see also
* [https://gitlab.haskell.org/ghc/ghc/-/wikis/GHC%20Status#all-released-ghc-versions GHC wiki > All released GHC versions]
* [https://gitlab.haskell.org/ghc/ghc/-/wikis/commentary/libraries/version-history GHC wiki > GHC Boot Library Version History]
* [https://www.snoyman.com/base Snoyman.com > GHC/base/Cabal/Win32 versions]
* [https://hackage.haskell.org/package/base Hackage > base]


On the GHC Trac wiki, one can find a more comprehensive [https://ghc.haskell.org/trac/ghc/wiki/Commentary/Libraries/VersionHistory table of versions that includes ''all'' boot libraries].


{|
{|
Line 31: Line 31:
| 6.10.2 (Apr 2009)
| 6.10.2 (Apr 2009)
| 4.1.0.0
| 4.1.0.0
|-
| 6.10.3 (May 2009)
| 4.1.0.0
|-
| 6.10.4 (Jul 2009)
| 4.1.0.0
|-
|
|-
|-
| 6.12.1 (Dec 2009)
| 6.12.1 (Dec 2009)
Line 40: Line 48:
| 6.12.3 (Jun 2010)
| 6.12.3 (Jun 2010)
| 4.2.0.2
| 4.2.0.2
|-
|
|-
|-
| 7.0.1 (Nov 2010)
| 7.0.1 (Nov 2010)
Line 46: Line 56:
| 7.0.2 (Mar 2011)
| 7.0.2 (Mar 2011)
| 4.3.1.0
| 4.3.1.0
|-
| 7.0.3 (Mar 2011)
| 4.3.1.0
|-
| 7.0.4 (Jun 2011)
| 4.3.1.0
|-
|
|-
|-
| 7.2.1 (Aug 2011)
| 7.2.1 (Aug 2011)
Line 52: Line 70:
| 7.2.2 (Nov 2011)
| 7.2.2 (Nov 2011)
| 4.4.1.0
| 4.4.1.0
|-
|
|-
|-
| 7.4.1 (Feb 2012)
| 7.4.1 (Feb 2012)
Line 58: Line 78:
| 7.4.2 (Jun 2012)
| 7.4.2 (Jun 2012)
| 4.5.1.0
| 4.5.1.0
|-
|
|-
|-
| 7.6.1 (Sep 2012)
| 7.6.1 (Sep 2012)
Line 64: Line 86:
| 7.6.2 (Jan 2013)
| 7.6.2 (Jan 2013)
| 4.6.0.1
| 4.6.0.1
|-
| 7.6.3 (Apr 2013)
| 4.6.0.1
|-
|
|-
|-
| 7.8.1 (Apr 2014)
| 7.8.1 (Apr 2014)
| 4.7.0.0
|-
| 7.8.2 (Apr 2014)
| 4.7.0.0
| 4.7.0.0
|-
|-
Line 73: Line 103:
| 7.8.4 (Dec 2014)
| 7.8.4 (Dec 2014)
| 4.7.0.2
| 4.7.0.2
|-
|
|-
|-
| 7.10.1 (Apr 2015)
| 7.10.1 (Apr 2015)
Line 82: Line 114:
| 7.10.3 (Dec 2015)
| 7.10.3 (Dec 2015)
| 4.8.2.0
| 4.8.2.0
|-
|
|-
|-
| 8.0.1 (May 2016)
| 8.0.1 (May 2016)
Line 88: Line 122:
| 8.0.2 (Jan 2017)
| 8.0.2 (Jan 2017)
| 4.9.1.0
| 4.9.1.0
|-
|
|-
| 8.2.1 (Jul 2017)
| 4.10.0.0
|-
| 8.2.2 (Nov 2017)
| 4.10.1.0
|-
|
|-
| 8.4.1 (Mar 2018)
| 4.11.0.0
|-
| 8.4.2 (Apr 2018)
| 4.11.1.0
|-
| 8.4.3 (May 2018)
| 4.11.1.0
|-
| 8.4.4 (May 2018)
| 4.11.1.0
|-
|
|-
| 8.6.1 (Sep 2018)
| 4.12.0.0
|-
| 8.6.2 (Nov 2018)
| 4.12.0.0
|-
| 8.6.3 (Dec 2018)
| 4.12.0.0
|-
| 8.6.4 (Mar 2019)
| 4.12.0.0
|-
| 8.6.5 (Apr 2019)
| 4.12.0.0
|-
|
|-
| 8.8.1 (Jul 2019)
| 4.13.0.0
|-
| 8.8.2 (Jan 2020)
| 4.13.0.0
|-
| 8.8.3 (Feb 2020)
| 4.13.0.0
|-
| 8.8.4 (Jul 2020)
| 4.13.0.0
|-
|
|-
| 8.10.1 (Mar 2020)
| 4.14.0.0
|-
| 8.10.2 (Aug 2020)
| 4.14.1.0
|-
| 8.10.3 (Dec 2020)
| 4.14.1.0
|-
| 8.10.4 (Feb 2021)
| 4.14.1.0
|-
| 8.10.5 (Jun 2021)
| 4.14.2.0
|-
| 8.10.6 (Aug 2021)
| 4.14.3.0
|-
| 8.10.7 (Aug 2021)
| 4.14.3.0
|-
|
|-
| 9.0.1 (Feb 2021)
| 4.15.0.0
|-
| 9.0.2 (Dec 2021)
| 4.15.1.0
|-
|
|-
| 9.2.1 (Oct 2021)
| 4.16.0.0
|-
| 9.2.2 (Mar 2022)
| 4.16.1.0
|-
| 9.2.3 (May 2022)
| 4.16.2.0
|-
| 9.2.4 (Jul 2022)
| 4.16.3.0
|-
| 9.2.5 (Nov 2022)
| 4.16.4.0
|-
| 9.2.6 (Feb 2023)
| 4.16.4.0
|-
| 9.2.7 (Feb 2023)
| 4.16.4.0
|-
| 9.2.8 (May 2023)
| 4.16.4.0
|-
|
|-
| 9.4.1 (Aug 2022)
| 4.17.0.0
|-
| 9.4.2 (Aug 2022)
| 4.17.0.0
|-
| 9.4.3 (Nov 2022)
| 4.17.0.0
|-
| 9.4.4 (Dec 2022)
| 4.17.0.0
|-
| 9.4.5 (Apr 2023)
| 4.17.1.0
|-
| 9.4.6 (Aug 2023)
| 4.17.2.0
|-
| 9.4.7 (Aug 2023)
| 4.17.2.0
|-
| 9.4.8 (Nov 2023)
| 4.17.2.1
|-
|
|-
| 9.6.1 (Mar 2023)
| 4.18.0.0
|-
| 9.6.2 (May 2023)
| 4.18.0.0
|-
| 9.6.3 (Sep 2023)
| 4.18.1.0
|-
| 9.6.4 (Jan 2024)
| 4.18.2.0
|-
| 9.6.5 (Apr 2024)
| 4.18.2.1
|-
| 9.6.6 (Jul 2023)
| 4.18.2.1
|-
| 9.6.7 (Mar 2025)
| 4.18.3.0
|-
|
|-
| 9.8.1 (Oct 2023)
| 4.19.0.0
|-
| 9.8.2 (Feb 2024)
| 4.19.1.0
|-
| 9.8.3 (Oct 2024)
| 4.19.2.0
|-
| 9.8.4 (Dec 2024)
| 4.19.2.0
|-
|
|-
| 9.10.1 (May 2024)
| 4.20.0.0
|-
|
|-
| 9.12.1 (Dec 2024)
| 4.21.0.0
|-
| 9.12.2 (Mar 2025)
| 4.21.0.0
|}
|}
See also the [https://hackage.haskell.org/package/base hackage page for the base package].


[[Category:Standard packages]]
[[Category:Standard packages]]

Latest revision as of 18:59, 1 April 2025

The base package contains the Prelude and its support libraries, and a large collection of useful libraries ranging from data structures to parsing combinators and debugging utilities. It is specific to the GHC implementation of Haskell. It includes Arrays, Arrows, Functors, Maybe, Monads and many others.

Versions

The base package is shipped alongside the GHC compiler, and each GHC version requires that specific version of the base package. So to declare which GHC versions a cabal package builds with, you can set corresponding bounds on the base package.

But version numbers for base do not match the GHC version number. Here is a partial list of which version of the base package was shipped with each GHC release. For more details, see also


GHC version base version
6.10.1 (Nov 2008) 4.0.0.0
6.10.2 (Apr 2009) 4.1.0.0
6.10.3 (May 2009) 4.1.0.0
6.10.4 (Jul 2009) 4.1.0.0
6.12.1 (Dec 2009) 4.2.0.0
6.12.2 (Apr 2010) 4.2.0.1
6.12.3 (Jun 2010) 4.2.0.2
7.0.1 (Nov 2010) 4.3.0.0
7.0.2 (Mar 2011) 4.3.1.0
7.0.3 (Mar 2011) 4.3.1.0
7.0.4 (Jun 2011) 4.3.1.0
7.2.1 (Aug 2011) 4.4.0.0
7.2.2 (Nov 2011) 4.4.1.0
7.4.1 (Feb 2012) 4.5.0.0
7.4.2 (Jun 2012) 4.5.1.0
7.6.1 (Sep 2012) 4.6.0.0
7.6.2 (Jan 2013) 4.6.0.1
7.6.3 (Apr 2013) 4.6.0.1
7.8.1 (Apr 2014) 4.7.0.0
7.8.2 (Apr 2014) 4.7.0.0
7.8.3 (Jul 2014) 4.7.0.1
7.8.4 (Dec 2014) 4.7.0.2
7.10.1 (Apr 2015) 4.8.0.0
7.10.2 (Jul 2015) 4.8.1.0
7.10.3 (Dec 2015) 4.8.2.0
8.0.1 (May 2016) 4.9.0.0
8.0.2 (Jan 2017) 4.9.1.0
8.2.1 (Jul 2017) 4.10.0.0
8.2.2 (Nov 2017) 4.10.1.0
8.4.1 (Mar 2018) 4.11.0.0
8.4.2 (Apr 2018) 4.11.1.0
8.4.3 (May 2018) 4.11.1.0
8.4.4 (May 2018) 4.11.1.0
8.6.1 (Sep 2018) 4.12.0.0
8.6.2 (Nov 2018) 4.12.0.0
8.6.3 (Dec 2018) 4.12.0.0
8.6.4 (Mar 2019) 4.12.0.0
8.6.5 (Apr 2019) 4.12.0.0
8.8.1 (Jul 2019) 4.13.0.0
8.8.2 (Jan 2020) 4.13.0.0
8.8.3 (Feb 2020) 4.13.0.0
8.8.4 (Jul 2020) 4.13.0.0
8.10.1 (Mar 2020) 4.14.0.0
8.10.2 (Aug 2020) 4.14.1.0
8.10.3 (Dec 2020) 4.14.1.0
8.10.4 (Feb 2021) 4.14.1.0
8.10.5 (Jun 2021) 4.14.2.0
8.10.6 (Aug 2021) 4.14.3.0
8.10.7 (Aug 2021) 4.14.3.0
9.0.1 (Feb 2021) 4.15.0.0
9.0.2 (Dec 2021) 4.15.1.0
9.2.1 (Oct 2021) 4.16.0.0
9.2.2 (Mar 2022) 4.16.1.0
9.2.3 (May 2022) 4.16.2.0
9.2.4 (Jul 2022) 4.16.3.0
9.2.5 (Nov 2022) 4.16.4.0
9.2.6 (Feb 2023) 4.16.4.0
9.2.7 (Feb 2023) 4.16.4.0
9.2.8 (May 2023) 4.16.4.0
9.4.1 (Aug 2022) 4.17.0.0
9.4.2 (Aug 2022) 4.17.0.0
9.4.3 (Nov 2022) 4.17.0.0
9.4.4 (Dec 2022) 4.17.0.0
9.4.5 (Apr 2023) 4.17.1.0
9.4.6 (Aug 2023) 4.17.2.0
9.4.7 (Aug 2023) 4.17.2.0
9.4.8 (Nov 2023) 4.17.2.1
9.6.1 (Mar 2023) 4.18.0.0
9.6.2 (May 2023) 4.18.0.0
9.6.3 (Sep 2023) 4.18.1.0
9.6.4 (Jan 2024) 4.18.2.0
9.6.5 (Apr 2024) 4.18.2.1
9.6.6 (Jul 2023) 4.18.2.1
9.6.7 (Mar 2025) 4.18.3.0
9.8.1 (Oct 2023) 4.19.0.0
9.8.2 (Feb 2024) 4.19.1.0
9.8.3 (Oct 2024) 4.19.2.0
9.8.4 (Dec 2024) 4.19.2.0
9.10.1 (May 2024) 4.20.0.0
9.12.1 (Dec 2024) 4.21.0.0
9.12.2 (Mar 2025) 4.21.0.0