[Haskell-cafe] no-unused-imports for only one import
Hécate
hecate at glitchbra.in
Fri Aug 9 09:02:48 UTC 2024
I don't believe so, because flags are set on a module basis and you need
more granular control.
Having been in your situation many times, what I often do is to define a
cabal flag called "development" and in my ghc-options stanza I write:
if flag(development)
ghc-options: -Wno-unused-imports -Wno-unused-packages
Then during CI I disable this flag.
Cheers,
Hécate
Le 09/08/2024 à 10:49, PICCA Frederic-Emmanuel a écrit :
> Hello,
>
> I would like to set -Wno-unused-imports for only one import,
>
> is it possible and how to do it ?
>
> thanks for your advices.
>
> Frederic
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
--
Hécate ✨
🐦: @TechnoEmpress
IRC: Hecate
WWW:https://glitchbra.in
RUN: BSD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20240809/ec1bd263/attachment.html>
More information about the Haskell-Cafe
mailing list