[Haskell-cafe] Float instance of 'read'

Bryan O'Sullivan bos at serpentine.com
Tue Sep 16 18:33:24 EDT 2008

On Tue, Sep 16, 2008 at 5:29 AM, Mauricio <briqueabraque at yahoo.com> wrote:

> Do you think 'read' (actually,
> 'readsPrec'?) could be made to also
> read the international convention
> (ie., read "1,5" would also work
> besides read "1.5")?

No, as read is really intended to be a language-level tool, not something
that you should expose to end users. For locale-aware number input and
formatting, you'd want to do something else.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080916/8f390aa6/attachment.htm

More information about the Haskell-Cafe mailing list