How does GHC implement layout?

Ian Lynagh igloo at
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:

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).


More information about the ghc-devs mailing list