[Haskell-cafe] Reducing the need for CPP

Adam Bergmark adam at bergmark.nl
Tue Oct 6 19:16:22 UTC 2015


On Tue, Oct 6, 2015 at 6:16 PM, Bardur Arantsson <spam at scientician.net>
wrote:

> On 10/06/2015 11:11 AM, Johan Tibell wrote:
> > It might be enough to just add a NOWARN <warning type> pragma that acts
> on
> > a single line/expression. I've seen it in both C++ and Python linters and
> > it works reasonably well and it's quite general.
>
> +1. Simple is good and can hopefully also be backported to older GHC
> releases. (Provided someone's willing to do said releases, obviously.)
>

I've thought of this in the past and it would be great to have. Another
possible use case is to allow this for extensions as well, e.g. "Only allow
UndecidableInstances for this declaration"


>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/libraries/attachments/20151006/4f48f31d/attachment.html>


More information about the Libraries mailing list