How does GHC implement layout?

Ian Lynagh igloo at earth.li
Mon Apr 5 19:36:03 UTC 2021


On Mon, Apr 05, 2021 at 05:09:21PM +0000, Simon Peyton-Jones wrote:
> Two people who may know more about the alternative layout rule are Simon Marlow and Ian Lynagh (cc'd).

It was originally designed by John Meacham:
https://gitlab.haskell.org/haskell/prime/-/wikis/alternative-layout-rule
https://www.mail-archive.com/haskell-prime@haskell.org/msg01938.html

It isn't exactly equivalent to the Haskell layout rule, but it's fairly
close and much simpler (due to not having the "on a parse error" case).


Thanks
IAn



More information about the ghc-devs mailing list