[GHC] #11170: (read ".9") :: Double unable to parse
GHC
ghc-devs at haskell.org
Mon Dec 7 13:16:36 UTC 2015
#11170: (read ".9") :: Double unable to parse
-------------------------------------+-------------------------------------
Reporter: varosi | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Core Libraries | Version: 7.10.2
Resolution: | 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: |
-------------------------------------+-------------------------------------
Changes (by nomeata):
* cc: ekmett (added)
* component: Prelude => Core Libraries
Comment:
Ah, I see. Sorry for not reading your request carefully.
The report simply states
> Reads an unsigned RealFrac value, expressed in decimal scientific
notation.
which allows for certain variations in interpretation. Also, I don’t see a
problem with `read` being more liberal than necessary, as long as no
ambiguities or similar are introduced.
Reassigning the component to get it onto the radar of the Core Library
Committee.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11170#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list