X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2FInteractiveUI.hs;h=f12773521d31909dad7850233def36369df82ea1;hb=d108044bef62f6a0d579c92ced5e8188f72edc2d;hp=7b3f6b9a590ce94f7e6bf02ef052bc9f73bb0aa9;hpb=cd307a057404c7fcdb428c4b30fecccc1da3401b;p=ghc-hetmet.git diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs index 7b3f6b9..f127735 100644 --- a/ghc/InteractiveUI.hs +++ b/ghc/InteractiveUI.hs @@ -1666,6 +1666,7 @@ showLanguages = do -- Completion completeCmd, completeMacro, completeIdentifier, completeModule, + completeSetModule, completeHomeModule, completeSetOptions, completeShowOptions, completeHomeModuleOrFile, completeExpression :: CompletionFunc GHCi @@ -1716,7 +1717,7 @@ completeSetModule = wrapIdentCompleterWithModifier "+-" $ \m w -> do Just '-' -> do (toplevs, exports) <- GHC.getContext return $ map GHC.moduleName (nub (map fst exports) ++ toplevs) - otherwise -> do + _ -> do dflags <- GHC.getSessionDynFlags let pkg_mods = allExposedModules dflags loaded_mods <- liftM (map GHC.ms_mod_name) getLoadedModules