logo       

ghci and unboxed ints: msg#00002

lang.haskell.glasgow.bugs

Subject: ghci and unboxed ints

Hi,

I just played randomly with ghci for a while and encountered the following
rather odd behaviour:

Prelude> :m GHC.Base
Prelude GHC.Base> let a = 1# +# 2#
Prelude GHC.Base> show (I# a)
"18345984"

The number shown is the one I got when running on Solaris. I get a
different one when running on Windows. It doesn't matter which numbers I
add, the same number is always shown.

Reproducible with 6.2 and 6.2.1.

Cheers,

/Josef


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise