简体   繁体   中英

How base package version relates to GHC version?

Since base contains some GHC modules, it looks like it may be coupled with certain GHC release. Suppose that I want to use library that depends on base:4.8.0.0 , does it mean it requires certain GHC release and I need to upgrade GHC?

Core library version to GHC version is a 1:N relation.

Since base contains some GHC modules, it looks like it may be coupled with certain GHC release.

base library is a core library defined as library which ships with GHC itself .

The GHC and library versions are maintained independently but the shipped library version changes are documented in each GHC release notes .

Base package haskell wiki page lists changes to shipped base library version and the GHC version where changed.

Suppose that I want to use library that depends on base:4.8.0.0, does it mean it requires certain GHC release and I need to upgrade GHC?

Mostly yes. It is not recommended to update core libraries alone though it is possible sometimes, ... by some people.

As a side note GHC does not release odd minor versions .

Also some libraries are defined by the haskell reports . However, there doesn't appear any mention of libraries.

Upgrading base by minor version steps might be theoretically possible sometimes. However, there is really no guarantee, and I'm not sure it's ever actually possible. Furthermore, it's hard to imagine why one might want to do so-it's not likely to be faster or easier than upgrading GHC.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM