[Haskell-beginners] Re: question on layout

George Huber geohuber at verizon.net
Sat Jun 20 11:44:09 EDT 2009


Maurí­cio wrote:
> Also, using layout,
>
> do
>      a <- x
>      let b = a
>      y b
>      z
>
> expands to
>
> do {a <- x ; let {b = a} in do {y b >> z}}
>
I'm curious as to where the second `do' came from?

> and then to
>
> x >>= \a -> let {b=a} in y b >> z
>



More information about the Beginners mailing list