From 2c2c603e58b73b646c3fe025a1d7d5570ce5739b Mon Sep 17 00:00:00 2001 From: David Waern Date: Fri, 27 Mar 2009 21:15:11 +0000 Subject: Remove H.GHC.Typecheck --- src/Haddock/GHC/Typecheck.hs | 53 -------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 src/Haddock/GHC/Typecheck.hs (limited to 'src/Haddock/GHC') diff --git a/src/Haddock/GHC/Typecheck.hs b/src/Haddock/GHC/Typecheck.hs deleted file mode 100644 index 4af2f811..00000000 --- a/src/Haddock/GHC/Typecheck.hs +++ /dev/null @@ -1,53 +0,0 @@ --- --- Haddock - A Haskell Documentation Tool --- --- (c) Simon Marlow 2003 --- - - -module Haddock.GHC.Typecheck ( - mkGhcModule -) where - - -import Haddock.Types - -import Data.Maybe -import GHC -import SrcLoc - -import Data.List - - -type CheckedMod = (Module, FilePath, FullyCheckedMod) - - -type FullyCheckedMod = (ParsedSource, - RenamedSource, - TypecheckedSource, - ModuleInfo) - - --- | Dig out what we want from the typechecker output -mkGhcModule :: CheckedMod -> DynFlags -> GhcModule -mkGhcModule (mdl, file, checkedMod) dynflags = GhcModule { - ghcModule = mdl, - ghcFilename = file, - ghcMbDocOpts = mbOpts, - ghcHaddockModInfo = info, - ghcMbDoc = mbDoc, - ghcGroup = group_, - ghcMbExports = mbExports, - ghcExportedNames = modInfoExports modInfo, - ghcDefinedNames = map getName $ modInfoTyThings modInfo, - ghcNamesInScope = fromJust $ modInfoTopLevelScope modInfo, - ghcInstances = modInfoInstances modInfo -} - where -#if __GLASGOW_HASKELL__ == 608 && __GHC_PATCHLEVEL__ == 2 - HsModule _ _ _ _ _ mbOpts _ _ = unLoc parsed -#else - mbOpts = haddockOptions dynflags -#endif - (group_, _, mbExports, mbDoc, info) = renamed - (parsed, renamed, _, modInfo) = checkedMod -- cgit v1.2.3