From d08eb01740b086654b430c82f8ba41f81058243f Mon Sep 17 00:00:00 2001 From: davve Date: Fri, 15 Sep 2006 18:06:21 +0000 Subject: Remove handling of --package flag --- src/Main.hs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/Main.hs b/src/Main.hs index 33913b51..3bbcf3a0 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -77,15 +77,10 @@ main = do (flags, fileArgs) <- parseHaddockOpts rest'' - mbPkgName <- handleEagerFlags flags - let dynflags'' = case mbPkgName of - Just name -> setPackageName name dynflags' - Nothing -> dynflags' + setSessionDynFlags session dynflags' + modules <- sortAndCheckModules session dynflags' fileArgs - setSessionDynFlags session dynflags'' - modules <- sortAndCheckModules session dynflags'' fileArgs - - packages <- getPackages session dynflags'' + packages <- getPackages session dynflags' updateHTMLXRefs packages let env = packagesDocEnv packages -- cgit v1.2.3