Re: no-unused-imports for only one import
Hécate via Haskell-Cafe <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.cafe |
|---|---|
| Message-ID | <[email protected]> |
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 _______________________________________________ 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.