Preferred way to do locales in the Haskell Platform
Asked Answered
E

2

22

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?

Evvy answered 1/6, 2010 at 13:48 Comment(0)
B
11

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.

Bargainbasement answered 1/6, 2010 at 15:9 Comment(3)
Well, the Hackage description (hackage.haskell.org/package/old-locale-1.0.0.2 ) says: "This package provides the old locale library. For new code, the new locale library is recommended." If that's not an explicit deprecation, I don't know what is.Evvy
@Evvy sadly that is just wishful thinking. The "new" locale lib is clearly stalled. I've not seen any discussion of a replacement for some time.Trotline
It's not possible to merge stalles new locale lib into old-locale and rename old-locale too new-locale?Entree
H
2

In old-locale-1.0.0.5, the deprecation notice is removed: http://hackage.haskell.org/package/old-locale.

Harms answered 5/2, 2013 at 13:53 Comment(2)
I'm sorry @Obs, the down vote was a complete accident! I intended to up-vote, but didn't notice the mistake until it was "locked in."Beguile
Don't worry about it. :)Harms

© 2022 - 2024 — McMap. All rights reserved.