
#13211: NegativeLiterals -0.0 :: Double -------------------------------------+------------------------------------- Reporter: rwbarton | Owner: (none) 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): It must be lexing `-0.0` as `-0 . 0` (which is then interpreted as an application of `(.)`), not `- 0.0`. The same logic should also apply to `-0`, since someone could write `-0 :: Double`. I suspect fixing that would also fix your problem here. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13211#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler