Re: [Haskell-cafe] Country names and language names

2013-03-08 Thread Jon Fairbairn
"Henk-Jan van Tuyl" writes: > On Wed, 06 Mar 2013 20:53:57 +0100, Obscaenvs wrote: >>> Do not forget that country names can change; e.g. the Netherlands >>> Antilles were split up in 2010. This might cause problems if you store >>> country codes in a database. If you simply remove obsolete count

Re: [Haskell-cafe] Country names and language names

2013-03-06 Thread Henk-Jan van Tuyl
On Wed, 06 Mar 2013 23:26:01 +0100, Henk-Jan van Tuyl wrote: someone lives, from a menu. Something like this: map isCurrentlyExisting listOfAllCountriesThatEverExisted That should be filter isCurrentlyExisting listOfAllCountriesThatEverExisted of course. Regards, Henk-Jan van Tuyl

Re: [Haskell-cafe] Country names and language names

2013-03-06 Thread Henk-Jan van Tuyl
On Wed, 06 Mar 2013 20:53:57 +0100, Obscaenvs wrote: Thanks for the input -- both items. f Do not forget that country names can change; e.g. the Netherlands Antilles were split up in 2010. This might cause problems if you store country codes in a database. If you simply remove obsolete count

Re: [Haskell-cafe] Country names and language names

2013-03-06 Thread Obscaenvs
Thanks for the input -- both items. f Le 2013-03-06 14:20, Henk-Jan van Tuyl a écrit : > On Wed, 06 Mar 2013 12:38:11 +0100, Obscaenvs wrote: > > : > : >> The iso3166-country-codes [1] package at Hackage by Jon Fairbairn >> provides a start in the right direction, but an obvious improvement upon

Re: [Haskell-cafe] Country names and language names

2013-03-06 Thread Henk-Jan van Tuyl
On Wed, 06 Mar 2013 12:38:11 +0100, Obscaenvs wrote: : : The iso3166-country-codes [1] package at Hackage by Jon Fairbairn provides a start in the right direction, but an obvious improvement upon it would be to have a function or map that takes an ISO 639 code and an ISO 3166 code and gives the

Re: [Haskell-cafe] Country names and language names

2013-03-06 Thread Mateusz Kowalczyk
On 06/03/13 11:38, Obscaenvs wrote: > Hi! I am working on an app in Yesod that craves I18N. A problem I've > come across there is giving correct country and language names based on > currently selected language. So far, I've used the Yesod I18N message > approach, but a lot of hand coding is involv

[Haskell-cafe] Country names and language names

2013-03-06 Thread Obscaenvs
Hi! I am working on an app in Yesod that craves I18N. A problem I've come across there is giving correct country and language names based on currently selected language. So far, I've used the Yesod I18N message approach, but a lot of hand coding is involved. The iso3166-country-codes [1] package a