Ticket #5524 (closed bug: fixed)
Unnecessary overflow in encodeFloat
Prelude> encodeFloat (2^1024) (-1024) Infinity
The real result is 1.0 of course.
The docs for encodeFloat now say that the result is infinite if overflow occurs, so technically we're within the spec, but I think in this case it shouldn't overflow.