#7045: the compiler and the library functions should read literals in the same way ------------------------------+--------------------------------------------- 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: #7044 | ------------------------------+--------------------------------------------- {{{ main = print (1.10 :: Rational) }}}
is legal whereas {{{ main = print (read "1.10" :: Rational) }}} fails at runtime with "Prelude.read: no parse" The same applies to "1E10", but the e-notation should be rejected in both cases (see #7044) -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7045> 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