#5688: instance Read Integer/Rational/Double readsPrec out of memory and crash 
due
to exponential notation
------------------------------+---------------------------------------------
 Reporter:  gracjan           |          Owner:                  
     Type:  bug               |         Status:  patch           
 Priority:  normal            |      Component:  libraries/base  
  Version:  6.12.3            |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  Runtime crash     |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------

Comment(by maeder):

 Is it not better to use "**" from the Floating class, rather than
 encodeFloat (from RealFloat) and this arbitrary "clampToInt" in
 convertFrac of your patch?

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

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to