On Thu, Oct 8, 2009 at 2:07 PM, Ross Mellgren <rmm-hask...@z.odi.ac> wrote:
> there is at least one ticket in Haskell' to fix it for if/then/else

...and there isn't one for let/in because you can use just let
(without in) inside a do-block.  Of course the meanings are different
as in the first case the let-bound variables scope only the 'in ...'
part, while without in it scopes the rest of the do block:

do {ini; let ... in ...; rest}  =>  ini >> (let ... in ...) >> rest
do {ini; let ...; ...; rest}  =>  ini >> (let ... in (... >> rest))

HTH,

--
Felipe.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to