summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlexander Berntsen <alexander@plaimi.net>2014-08-18 21:43:33 -0500
committerAustin Seipp <austin@well-typed.com>2014-08-18 23:26:19 -0500
commitd9a20573f473cc7389004470999b8a318aa6b3f2 (patch)
treef6d3e7ef5dcd0622481c59d54567b4a0f9f7f637 /Makefile
parent6f6ee6eaa348b1a4815190c4d526d5c81c264fa7 (diff)
downloadhaskell-d9a20573f473cc7389004470999b8a318aa6b3f2.tar.gz
Make Prelude.signum handle -0.0 correctly (#7858)
Summary: Make the `Float` and `Double` implementations of `signum` handle -0.0 correctly per IEEE-754. This, together with "Make Prelude.abs handle -0.0 correctly (#7858)", fixes Trac #7858. Depends on D145 Signed-off-by: Alexander Berntsen <alexander@plaimi.net> Test Plan: signum of (-0.0) should be (-0.0) not 0.0. Test program: main = putStrLn $ p ++ " " ++ n where f = show . signum p = f (-0.0 :: Double) n = f (0.0 :: Double) Reviewers: ekmett, hvr, rwbarton, austin Reviewed By: austin Subscribers: phaskell, simonmar, relrod, ezyang, carter Differential Revision: https://phabricator.haskell.org/D148 GHC Trac Issues: #7858
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions