#7044: reject reading rationals with exponent notation
------------------------------+---------------------------------------------
 Reporter:  maeder            |          Owner:                  
     Type:  bug               |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.4.2             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:  #5692             |  
------------------------------+---------------------------------------------
 The program

 {{{
 main = print (1E1000000000 :: Rational)
 }}}

 fails in the same way as for doubles currently. This should not happen at
 compile time! Therefore I suggest to forbid using the e-notation for
 rationals, it is not legal for integers either.

 (An alternative would be to evaluate the rational only at run-time)

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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to