[Haskell-cafe] Layout rules for if then else
allbery.b at gmail.com
Tue Mar 10 16:06:43 UTC 2015
On Tue, Mar 10, 2015 at 12:01 PM, Alan & Kim Zimmerman <alan.zimm at gmail.com>
> 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 at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe