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

GHC ghc-devs at haskell.org
Sun Jan 10 13:13:51 UTC 2016


#11170: (read ".9") :: Double unable to parse
-------------------------------------+-------------------------------------
        Reporter:  varosi            |                Owner:
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:
       Component:  Core Libraries    |              Version:  7.10.2
      Resolution:  wontfix           |             Keywords:  Read, report-
                                     |  impact
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect result  |  Unknown/Multiple
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by varosi):

 I have already written my own Attoparsec parser for that. For me at first
 sight it was a bug, because I used to use ".[decimal]" for floats on other
 languages.

 Okay, thank you for the thorough research about it! For all those reasons
 it seems that current implementation is the right way to be done in
 Haskell.

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


More information about the ghc-tickets mailing list