<div dir="ltr"><div><div><div>I am working on ghc-exactprint, and need to flag points where layout must be preserved, and considering the `if` statement.<br><br>My understanding of the layout rules for if then else is that the `then` has to start more to the right than the `if`.<br><br></div>Using GHC 7.10 RC2, ghci cheerfully loads the following<br><br>```<br>f =<br>    if True<br> then 1<br>  else 2<br><br>```<br><br></div>Is this valid? Have the rules been relaxed?<br><br></div>Alan<br></div>