diff options
author | David Waern <david.waern@gmail.com> | 2009-03-28 22:10:19 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2009-03-28 22:10:19 +0000 |
commit | c1274e8a0ce9476f058bceea12fd676be212438b (patch) | |
tree | 3bd439b39342f09fb0d308b918fe049b517dbff7 /src/Haddock/Interface.hs | |
parent | 0a749cd887963449f4e338046f5e74a20d139191 (diff) |
-Wall police in H.Interface
Diffstat (limited to 'src/Haddock/Interface.hs')
-rw-r--r-- | src/Haddock/Interface.hs | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/Haddock/Interface.hs b/src/Haddock/Interface.hs index 529cd565..79bb00cf 100644 --- a/src/Haddock/Interface.hs +++ b/src/Haddock/Interface.hs @@ -20,24 +20,19 @@ import Haddock.Interface.Rename import Haddock.Types import Haddock.Options import Haddock.GHC.Utils -import Haddock.Exception import Haddock.Utils import Haddock.InterfaceFile import qualified Data.Map as Map -import Data.Map (Map) import Data.List import Data.Maybe import Control.Monad import Control.Exception ( evaluate ) import Distribution.Verbosity -import GHC +import GHC hiding (verbosity, flags) import Name -import HscTypes ( msHsFilePath ) import Digraph -import BasicTypes -import SrcLoc import HscTypes @@ -241,7 +236,7 @@ mkGhcModule (mdl, file, checkedMod) dynflags = GhcModule { mbOpts = haddockOptions dynflags #endif (group_, _, mbExports, mbDoc, info) = renamed - (parsed, renamed, _, modInfo) = checkedMod + (_, renamed, _, modInfo) = checkedMod -- | Build a mapping which for each original name, points to the "best" @@ -262,6 +257,6 @@ buildHomeLinks ifaces = foldl upd Map.empty (reverse ifaces) | otherwise = foldl' keep_new old_env exported_names where exported_names = ifaceVisibleExports iface - mod = ifaceMod iface - keep_old env n = Map.insertWith (\new old -> old) n mod env - keep_new env n = Map.insert n mod env + mdl = ifaceMod iface + keep_old env n = Map.insertWith (\_ old -> old) n mdl env + keep_new env n = Map.insert n mdl env |