[Haskell-cafe] Layout rules for if then else

Brandon Allbery 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>
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 at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150310/2f68ae1c/attachment.html>


More information about the Haskell-Cafe mailing list