[Haskell-beginners] Re: number formatting with locale

Wirt Wolff wirtwolff at gmail.com
Tue Sep 8 10:31:10 EDT 2009


Excerpts from Dmitry Simonchik's message of Tue Sep 08 02:47:43 -0600 2009:
> Not to mention that
> > since Haskell is pure, it is *impossible* for the expression  show 20.2
> > :: String  to depend on the current locale.
> >
> 
> This is a very valuable remark. Thanks! I will think about using some
> special functions to read and write numbers depending on current locale.

The i18n module from hackage is worth a look for this:

http://hackage.haskell.org/cgi-bin/hackage-scripts/package/i18n

-- 
wmw


More information about the Beginners mailing list