Fix prelude definitions of abs/signum for Floats/Doubles
Levent Erkok
erkokl at gmail.com
Tue Apr 23 05:40:18 CEST 2013
I believe enough discussions took place on this topic, and we all seem to
be in agreement that the behavior should be fixed. Encouraged by Simon's
earlier note, here's the ticket I filed:
http://hackage.haskell.org/trac/ghc/ticket/7858
Thanks to everyone for taking the time and contributing!
-Levent.
On Mon, Apr 22, 2013 at 4:25 AM, Simon Peyton-Jones
<simonpj at microsoft.com>wrote:
> | > <daniel.is.fischer at googlemail.com> wrote:
> | > > Also
> | > >
> | > > abs x
> | > >
> | > > | x < 0 = negate x
> | > > | otherwise = x
> | > >
> | > > keeps the number of tests at one.
> | >
> | > This gives the wrong result for -0.0 (which is compare-equal to +0.0).
> | >
> | > Shachaf
>
> I'm very happy to see all this activity on making GHC's numerics better.
> For this particular thread, would someone like to create a ticket?
>
> My list of numeric infelicities is under "Better numerics" on
> http://hackage.haskell.org/trac/ghc/wiki/Status/SLPJ-Tickets
>
> If any of you feel able to make progress on these things, it'd be great.
>
> Simon
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20130422/f49ecc4b/attachment.htm>
More information about the Libraries
mailing list