Re: ppr of HsDo

2016-11-10 Thread Alan & Kim Zimmerman
>> >> But that’s not a strong opinion and I would willingly yield to others! >> >> >> >> Simon >> >> >> >> *From:* Alan & Kim Zimmerman [mailto:alan.z...@gmail.com] >> *Sent:* 10 November 2016 08:31 >> *To:* Simo

Re: ppr of HsDo

2016-11-10 Thread Alan & Kim Zimmerman
hers! > > > > Simon > > > > *From:* Alan & Kim Zimmerman [mailto:alan.z...@gmail.com] > *Sent:* 10 November 2016 08:31 > *To:* Simon Peyton Jones <simo...@microsoft.com> > *Cc:* ghc-devs@haskell.org > *Subject:* Re: ppr of HsDo > > > > Thanks. &

RE: ppr of HsDo

2016-11-10 Thread Simon Peyton Jones via ghc-devs
Kim Zimmerman [mailto:alan.z...@gmail.com] Sent: 10 November 2016 08:31 To: Simon Peyton Jones <simo...@microsoft.com> Cc: ghc-devs@haskell.org Subject: Re: ppr of HsDo Thanks. And any thoughts on my proposal to do away with the braces/semi completely? I suspect GHC is the only significant bo

Re: ppr of HsDo

2016-11-10 Thread Alan & Kim Zimmerman
Thanks. And any thoughts on my proposal to do away with the braces/semi completely? I suspect GHC is the only significant body of code that uses that style still. Alan On Thu, Nov 10, 2016 at 10:24 AM, Simon Peyton Jones wrote: > I think it’s because the “;” is

RE: ppr of HsDo

2016-11-10 Thread Simon Peyton Jones via ghc-devs
I think it’s because the “;” is treated as part of the let not part of the do. After all, how does the implicit layout of the let know that the let-bindings are finished? This should work foo = do { let { x = 1 }; Just 5 } Now the let bindings are clearly brought to an end. Or