[GHC] #7045: the compiler and the library functions should read literals in the same way
GHC
cvs-ghc at haskell.org
Tue Jul 3 10:17:14 CEST 2012
#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
More information about the Glasgow-haskell-bugs
mailing list