[Haskell-cafe] no-unused-imports for only one import

Henning Thielemann lemming at henning-thielemann.de
Fri Aug 9 09:12:10 UTC 2024


On Fri, 9 Aug 2024, PICCA Frederic-Emmanuel wrote:

>>   import Your.Module ()
>>
>> trick? That is, add empty parenthesis after your import?
>
> This code is a binding to a library and depending on values this import is necessary or not.

Then just put the same HS_VERSION check around the import.


More information about the Haskell-Cafe mailing list