aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authordavve <davve@dtek.chalmers.se>2006-09-15 18:06:21 +0000
committerdavve <davve@dtek.chalmers.se>2006-09-15 18:06:21 +0000
commitd08eb01740b086654b430c82f8ba41f81058243f (patch)
treed2ce6c0a604c88addb3c93a784f89d2741586e91 /src/Main.hs
parentfcfbcf661f26f2a22a4b6a54d628d7d1ec2c358e (diff)
Remove handling of --package flag
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs11
1 files changed, 3 insertions, 8 deletions
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