ghci and unboxed ints

Simon Peyton-Jones simonpj at microsoft.com
Thu May 6 10:41:20 EDT 2004


| Ah, of course. I was a bit confused, as:
| 
|         main = putStrLn (show ( let a = 1# in I# a ))
| 
| does bind, and compile. But I guess that's because it isn't at the
| top level?

Correct.  Top level => you can't see the scope of the 'let', and typing
is kind of incremental.  It's easier if everything has a uniform
representation there.

S


More information about the Glasgow-haskell-bugs mailing list