Parser changes for supporting top-level SCC annotations

Ben Gamari ben at smart-cactus.org
Tue Jul 19 09:39:06 UTC 2016


Ömer Sinan Ağacan <omeragacan at gmail.com> writes:

> I managed to do this without introducing any new pragmas. I added a new
> production that doesn't look for SCC annotations, for top-level expressions. I
> then used it in decl_no_th and topdecl.
>
Yay!

I'll admit I wasn't a fan of the SCC_FUNCTION proposal. SCC pragmas are
already rather wordy with the {-# #-} delimiters and quotes.
SCC_FUNCTION is even worse.

Cheers,

- Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20160719/2dd06e28/attachment.sig>


More information about the ghc-devs mailing list