Ignoring ANN Module "HLint: ..."

Brandon Allbery allbery.b at gmail.com
Sun Sep 24 05:48:03 UTC 2017


On Sun, Sep 24, 2017 at 1:44 AM, Moritz Angermann <
moritz.angermann at gmail.com> wrote:

> can we detect annotations like `{-# ANN module "HLint: ignore Reduce
> duplication" #-}` easily?
> Right now this will result (without -fexternal-interpreter or a stage2
> compiler) in
>
>   Ignoring ANN annotation, because this is a stage-1 compiler without
> -fexternal-interpreter or doesn't support GHCi
>
> However, I do not see why this should require the external interpreter at
> all. This looks to me
> more like an informational comment?
>

As I understand it, ANNotations are intended for use with ghc plugins;
hlint's use of them is not *quite* an abuse, since it is relying on
haskell-src-exts handling of them rather than ghc's.

-- 
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/ghc-devs/attachments/20170924/0eef70e0/attachment.html>


More information about the ghc-devs mailing list