[Haskell-cafe] Layout rules for if then else
Alan & Kim Zimmerman
alan.zimm at gmail.com
Tue Mar 10 16:25:44 UTC 2015
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 at gmail.com>
wrote:
> 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/36427a0b/attachment.html>
More information about the Haskell-Cafe
mailing list