在 Haskell 平台中进行区域设置的首选方法
Haskell 平台包含两个过时的库:old-time
和 old-locale
。对于旧时间,它还包括首选替代方案(即 time
),但我无法弄清楚 old-locale
的推荐替代方案是什么。
这只是目前平台(版本 2010.1.0.0)的一个缺点,还是我忽略的东西?
The Haskell platform includes two obsolete libraries, old-time
and old-locale
. For old-time, it also includes the preferred alternative (namely time
), but I can't figure out what the recommended alternative for old-locale
is.
Is this simply a shortcoming of the Platform as of now (version 2010.1.0.0), or something I've overlooked?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据定义,HP 中的库并未过时。但使用的具体名称取决于维护者。 old-locale 仍然是操作区域设置的首选机制。
The libraries in the HP are by definition not obsolete. The particular names used though, are up to the maintainers. old-locale remains the preferred mechanism for manipulating locales.
在 old-locale-1.0.0.5 中,删除了弃用通知:http ://hackage.haskell.org/package/old-locale。
In old-locale-1.0.0.5, the deprecation notice is removed: http://hackage.haskell.org/package/old-locale.