id,summary,reporter,owner,description,type,status,priority,milestone,version,resolution,keywords,cc
47,Incorrect warnings for SOURCE pragmas,nad,,"Consider the following files:

A.hs-boot:
{{{
module A where

x :: a
}}}
A.hs:
{{{
module A where

import B

x = y
}}}
B.hs:
{{{
module B where

import {-# SOURCE #-} A

y = x
}}}

The SOURCE pragma is clearly necessary (GHC 6.8.3 does not warn about it), but Haddock (both 2.1.0 and the most recent darcs version) gives a warning:
{{{
$ haddock A.hs B.hs

B.hs:3:0:
    Warning: Unnecessary {-# SOURCE #-} in the import of module `A'
}}}

This is quite annoying, since our project relies on -Wall -Werror, cabal haddock reuses the GHC options from the Cabal file, and there is no flag for turning off just the given warning.

This may be related to http://hackage.haskell.org/trac/ghc/ticket/1833, by the way.
",defect,closed,minor,,,fixed,,
