Proposal (base): Add new Exp constructor to Text.Read.Lex.Lexeme

Yitzchak Gale gale at
Sun Dec 11 18:07:31 CET 2011

Gracjan Polak wrote:
> Core of proposal: Add
> data Lexeme
>  ...
>  | Exp Integer Integer -- ^ Floating point literal in exponential form a*10^b
> Currently when parsing 12e1000000000000 it is at some
> point represented as Rational...
> I needed to change public interface of
> Text.Read.Lex to get it fixed.

+1 for doing whatever is needed to fix this,
and promptly.

I defer to the opinions of those more
intimately familiar with GHC internals about
whether this is the right way to do it.

Thanks for pushing this forward!


More information about the Libraries mailing list