[Haskell-cafe] Binding of an integer variable

Brandon Allbery allbery.b at gmail.com
Thu Jul 28 21:00:48 CEST 2011


On Thu, Jul 28, 2011 at 14:52, Henning Thielemann <
lemming at henning-thielemann.de> wrote:

> I have never used ':show bindings' before ... in other cases like
>   let x='a'
> and
>   let x=23::Int
>

Since you gave explicit types, x is bound to strict values directly; it's
only when no type is given that GHCi needs to translate the constant per the
Language Report to an invocation of fromInteger.

-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110728/a20cf02a/attachment.htm>


More information about the Haskell-Cafe mailing list