Re: no-unused-imports for only one import

Georgi Lyubenov <[email protected]>
Newsgroups gmane.comp.lang.haskell.cafe
Message-ID <[email protected]>
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.
_______________________________________________
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.