X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Fghci%2FInteractiveUI.hs;fp=compiler%2Fghci%2FInteractiveUI.hs;h=a2108bb0b97c845a66c810a92e738866a118fe49;hp=3b5fde9ae3a4ac27869fa37e6f50f741df7310a9;hb=ec70c0a7512cd18ad08d23d69a8eea645fc8f2cf;hpb=9c57dc586394c178c848ee8fb5618a2cb807912e diff --git a/compiler/ghci/InteractiveUI.hs b/compiler/ghci/InteractiveUI.hs index 3b5fde9..a2108bb 100644 --- a/compiler/ghci/InteractiveUI.hs +++ b/compiler/ghci/InteractiveUI.hs @@ -1739,7 +1739,8 @@ completeHomeModule w = do completeSetOptions w = do return (filter (w `isPrefixOf`) options) - where options = "args":"prog":allFlags + where options = "args":"prog":flagList + flagList = map head $ group $ sort allFlags completeFilename w = do ws <- Readline.filenameCompletionFunction w