Print out rational literals correctly in External Core
authorTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 28 Mar 2008 21:19:19 +0000 (21:19 +0000)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Fri, 28 Mar 2008 21:19:19 +0000 (21:19 +0000)
commit0a9b1362c9103c17a9f662287fd65c8779bcf4ef
tree5ecc32453e438e4e1b5922feaac6e71b934f97be
parent81e51a265d315609cb28e190fc59ca690f5f5d6e
Print out rational literals correctly in External Core

The External Core printer was printing out rational literals of the
form:
2.0e-2
when the External Core grammar doesn't allow this. (This
bug has apparently been there since the beginning...)

It's now printing rationals in the same form that (show (r::Rational))
does. This requires a parser change as well (soon to come.)
compiler/coreSyn/PprExternalCore.lhs