[Haskell-cafe] Cannot read a large integer on linux

Arnaud Bailly arnaud.oqube at gmail.com
Tue Jan 15 00:40:04 CET 2013


Hello,
I am encountering a strange issue while trying to read a string into an
integer.

On windows 7 64bit, I have:

> read "18780189038289e49" :: Integer
=187801890382890000000000000000000000000000000000000000000000000

On linux (64bit, libgmp.so.3.5.2) I have:

> read "18780189038289e49" :: Integer
*** Exception: Prelude.read: no parse

That's weird and I really have no clue what's going on. I use ghci 7.4.2 on
linux and 7.4.1 on windows.

What am I doing wrong ?

Arnaud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130115/4ba3ea59/attachment.htm>


More information about the Haskell-Cafe mailing list