[project @ 2003-01-09 12:01:45 by simonmar]
authorsimonmar <unknown>
Thu, 9 Jan 2003 12:01:45 +0000 (12:01 +0000)
committersimonmar <unknown>
Thu, 9 Jan 2003 12:01:45 +0000 (12:01 +0000)
Fix the stage2 build even more.

ghc/compiler/compMan/CompManager.lhs

index 07c5dbe..1f5aa9a 100644 (file)
@@ -232,9 +232,9 @@ moduleNameToModule hpt mn = do
     _not_a_home_module -> do
          maybe_stuff <- findModule mn
          case maybe_stuff of
-           Nothing -> throwDyn (CmdLineError ("can't find module `"
+           Left _ -> throwDyn (CmdLineError ("can't find module `"
                                    ++ moduleNameUserString mn ++ "'"))
-           Just (m,_) -> return m
+           Right (m,_) -> return m
 
 cmGetContext :: CmState -> IO ([String],[String])
 cmGetContext CmState{ic=ic} =