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
gt; > foo > = do { let x = 1; Just 5 } > > > > So it’s a bug in the pretty-printer, not the parser > > > > SImon > > > > > > *From:* ghc-devs [mailto:ghc-devs-boun...@haskell.org] *On Behalf Of *Alan > & Kim Zimmerman > *Sent:* 10 November 2

RE: ppr of HsDo

2016-11-10 Thread Simon Peyton Jones via ghc-devs
] On Behalf Of Alan & Kim Zimmerman Sent: 10 November 2016 07:01 To: ghc-devs@haskell.org Subject: ppr of HsDo The pretty printer turns foo = do let x = 1 Just 5 into foo = do { let x = 1; Just 5 } which does not parse, complaining about "parse error on in

ppr of HsDo

2016-11-09 Thread Alan & Kim Zimmerman
The pretty printer turns foo = do let x = 1 Just 5 into foo = do { let x = 1; Just 5 } which does not parse, complaining about "parse error on input ‘Just’" Is this a parser error or a ppr problem? I am keen to fix the ppr to output foo = do let x = 1 Just 5 but I