[Haskell-cafe] Disabling warning over ranges of source lines

Thomas DuBuisson thomas.dubuisson at gmail.com
Mon Feb 20 05:06:15 CET 2012


Using GHC, is there any way to disable warnings (entirely or
selectively) during a section of source code?  I ask because of some
Template Haskell that periodically generates unused code and I'd
rather not see the warnings or rework the macros (beyond emitting some
sort of "disable" and "re-enable" pragma which probably isn't in the
AST now that I think about it).

Cheers,
Thomas



More information about the Haskell-Cafe mailing list