
#13211: NegativeLiterals -0.0 :: Double -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Nolan Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): I see. I guess we could continue to parse `-0b0` and `-0.0` as single lexemes, but record that they have the form of negative zero. Then convert them to `negate (fromInteger 0)` or `negate (fromRational 0)` during desugaring. However when I took a quick look earlier that didn't look particularly convenient to do. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13211#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler