简体   繁体   English

什么时候GHC Haskell2010首次包含在Haskell平台中,什么时候隐藏了Haskell98样式模块?

[英]When was the GHC Haskell2010 first included in the Haskell Platform, and when were the Haskell98 style modules hidden?

We currently have a little trouble in our project, as we've found that in the new GHC versions the old modules like Char are hidden by default, and instead the new modules (like Data.Char) are the default. 我们目前在项目中遇到一些麻烦,因为我们发现在新的GHC版本中,像Char这样的旧模块默认是隐藏的,而新的模块(如Data.Char)是默认的。 I'm now trying to figure out with which version the Data. 我现在正试图找出数据的版本。 , Control. , 控制。 etc Modules were introduced, and which GHC version first hid Packages like Char. 等模块被引入,哪个GHC版本首先隐藏像Char这样的包。

The hierarchical modules were introduced in antiquity (they already were around in the early ghc-6.* versions, digging in old releases indicates the hierarchical modules were introduced during the ghc-5.* era, around 2002/2003), and the haskell98 modules were hidden by default with ghc-7.2 since there were enough changes that haskell98 became incompatible with base . 分层模块是在古代引入的(它们已经出现在早期的ghc-6。*版本中,挖掘旧版本表明分层模块是在ghc-5。*时代,2002/2003年左右引入的)和haskell98默认情况下,模块被ghc-7.2隐藏,因为有足够的更改, haskell98变得与base不兼容。

From the release notes of 7.2.1: 从7.2.1的发行说明:

1.5.12.13. 1.5.12.13。 haskell98 haskell98

Version number 2.0.0.0 (was 1.1.0.1) 版本号2.0.0.0(原为1.1.0.1)

It is no longer possible to use the haskell98 package with the base package, as it now includes the Prelude and Numeric modules. 不再可能将haskell98软件包与基础软件包一起使用,因为它现在包含Prelude和Numeric模块。 The haskell98 package is therefore now hidden by default. 因此,haskell98软件包现在默认隐藏。

The options for your project are to make it depend on haskell98 and not on base, or to update your imports to use the hierarchical modules. 项目的选项是使其依赖于haskell98而不是基础,或者更新导入以使用分层模块。

The latter is the recommended path, unless you specifically depend on some Haskell98 features that were changed. 后者是推荐的路径,除非您特别依赖于某些已更改的Haskell98功能。 The former rules out the use of many packages depending on base . 前者排除了使用许多包,具体取决于基础

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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