[Haskell-cafe] bug in number reading?
jason.dusek at gmail.com
Sun Sep 28 19:41:36 EDT 2008
Brandon S. Allbery KF8NH <allbery at ece.cmu.edu> wrote:
> Jason Dusek wrote:
>> Maybe I'm missing something, but this doesn't seem right...
>> :; ghc -e '10e4'
>> Warning: Defaulting the following constraint(s) to type `Double'
>> `Fractional a' arising from a use of `it' at
>> In the first argument of `print', namely `it'
>> In the expression: print it
>> In a stmt of a 'do' expression: print it
>> it :: forall t. (Fractional t) =>
> Looks right to me. Remember that the translation of that is 10 * 10^4.
More information about the Haskell-Cafe