
#12665: Make Read instances faster, and make them fail fast -------------------------------------+------------------------------------- Reporter: dfeuer | Owner: dfeuer Type: feature request | Status: new Priority: high | Milestone: 8.2.1 Component: Core Libraries | Version: 8.0.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by dfeuer): The code I gave does have a bug. If a string can be parsed as a fractional value, it seems it's not supposed to produce any results for integral types. I think we can fix this when we get to the end of the digits by looking ahead for `.` or `e` followed by a digit, and failing if we see one. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12665#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler