[Haskell-cafe] Unused import warnings.

Martijn van Steenbergen martijn at van.steenbergen.nl
Tue Aug 10 17:00:42 EDT 2010


Are you saying that GHC complains about an unused import that is in fact 
used? Perhaps you've run into this bug:
http://hackage.haskell.org/trac/ghc/ticket/1148

Are you using a recent version of GHC?

Groetjes,

Martijn.


On 8/10/10 22:22, Lyndon Maydwell wrote:
> Hi Cafe.
>
> I have written some QuickCheck properties in my source and am using
> these for testing, however, when I compile my program I get warned
> about unused imports:
>
>> Warning: Module `Test.QuickCheck' is imported, but nothing from it is used
>
> Is there a way to suppress these warnings for a particular module by
> using a pragma directive or something similar?
>
>
> Thanks!
>
> - Lyndon
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe



More information about the Haskell-Cafe mailing list