Sat, 24 Jun 2000 15:04:14 +0200 (CEST), Michael Marte
<[EMAIL PROTECTED]> pisze:
> First, I found out that both ghc and hugs do not consider the precision
> argument to showPrec. In fact, the standard prelude of Haskell 98 proposes
> to drop the precision argument in showsPrec in the Show instances of Float
> and Double.
It's not precision but precedence. It rules when parentheses are shown, so
show (Just (1:+2)) == "Just (1.0 :+ 2.0)".
> I ended up using Numeric.ShowFFloat. I don't like this solution
> because it is unnecessarily complicated.
I think it's the best solution. Why complicated?
--
__("< Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
\__/ GCS/M d- s+:-- a23 C+++$ UL++>++++$ P+++ L++>++++$ E-
^^ W++ N+++ o? K? w(---) O? M- V? PS-- PE++ Y? PGP+ t
QRCZAK 5? X- R tv-- b+>++ DI D- G+ e>++++ h! r--%>++ y-