[Haskell-cafe] ghc warn-unused-imports

Henning Thielemann lemming at henning-thielemann.de
Mon Mar 24 16:22:19 EDT 2008


On Mon, 24 Mar 2008, Evan Laforge wrote:

> So it appears that GHC will warn about "unused" imports when you
> import qualified if you could have gotten the symbol from somewhere
> else.  For instance, if you write:
>
> import qualified Control.Monad.Trans as Trans
> import qualified Control.Monad.Writer as Writer
>
> and use "Trans.lift", it will complain because you could have used
> "Writer.lift".

I think, it's a known issue:
   http://hackage.haskell.org/trac/ghc/ticket/1148


More information about the Haskell-Cafe mailing list