But those instances may be used by a module which imports this one. I
think Sergey's comment is correct.
hip hip
Kevin
Simon Marlow writes:
> > ghc-pre-4.07 -fwarn-unused-imports
> >
> > says to my ` import M () '
> >
> > .../M.hs:42:
> > Warning: Module `M' is imported, but nothing from it is used
> >
> >
> > Should it add "except, maybe, instances" ?
> > Because removing this import may cause the error report about the
> > lack of some instances.
>
> If instances are actually being imported and used, then the compiler
> shouldn't produce this warning. If you have an example to the contrary,
> could you send it please?
>
> Cheers,
> Simon
>