[GHC] #13211: NegativeLiterals -0.0 :: Double

GHC ghc-devs at haskell.org
Sun Feb 19 15:57:34 UTC 2017


#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


More information about the ghc-tickets mailing list