Ok, adding a do does make a difference. More complexity.

Thanks
  Alan

On Tue, Mar 10, 2015 at 6:06 PM, Brandon Allbery <allbery.b@gmail.com> wrote:
On Tue, Mar 10, 2015 at 12:01 PM, Alan & Kim Zimmerman <alan.zimm@gmail.com> wrote:
I am working on ghc-exactprint, and need to flag points where layout must be preserved, and considering the `if` statement.

My understanding of the layout rules for if then else is that the `then` has to start more to the right than the `if`.

I believe you are looking for DoAndIfThenElse.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net