[Haskell-cafe] Binding of an integer variable
David McBride
dmcbride at neondsl.com
Thu Jul 28 20:53:48 CEST 2011
It hasn't been evaluated yet. It is just a thunk.
>let x = 23
>:show bindings
x :: Integer = _
>x
23
>:show bindings
x :: Integer = 23
On Thu, Jul 28, 2011 at 2:43 PM, Paul Reiners <paul.reiners at gmail.com> wrote:
> I have a question about the following GHCi interaction:
>
> Prelude> let x = 23
> Prelude> :show bindings
> x :: Integer = _
>
> What is the meaning of the underscore in the third line? Why doesn't it say
> this, instead?
>
> x :: Integer = 23
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
More information about the Haskell-Cafe
mailing list