[Haskell-cafe] no-unused-imports for only one import
Georgi Lyubenov
godzbanebane at gmail.com
Fri Aug 9 11:01:08 UTC 2024
Unfortunately the status quo is indeed to use CPP around imports as well.
One can imagine, with modifier syntax, some dedicated version of
disabling warnings locally, but it is not something that has been
implemented or even proposed yet.
On 8/9/24 12:12, Henning Thielemann wrote:
>
> 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.
> _______________________________________________
> 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.
More information about the Haskell-Cafe
mailing list