[GHC] #11170: (read ".9") :: Double unable to parse

GHC ghc-devs at haskell.org
Sun Dec 6 18:18:09 UTC 2015


#11170: (read ".9") :: Double unable to parse
-------------------------------------+-------------------------------------
           Reporter:  varosi         |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Prelude        |           Version:  7.10.2
           Keywords:  Read           |  Operating System:  Windows
       Architecture:  x86_64         |   Type of failure:  Incorrect result
  (amd64)                            |  at runtime
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 For most languages ".9" is a floating point number equal to 0.9, but in
 GHC this is unparsable. I don't know if it is by design, but it was
 unexpected by me. I think that it is good this to be valid parsable to
 Double string.

 What do you think of?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11170>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list