Ticket #8075: ticket-8075-add-show-imports-to-completion.patch

File ticket-8075-add-show-imports-to-completion.patch, 956 bytes (added by hvr, 9 months ago)
  • ghc/InteractiveUI.hs

    From 1a7e5cbbe1070f864df289bf48b1b6477928ed67 Mon Sep 17 00:00:00 2001
    From: Herbert Valerio Riedel <hvr@gnu.org>
    Date: Tue, 9 Jul 2013 14:55:36 +0200
    Subject: [PATCH] Add `:show imports` to completion table
    
    ---
     ghc/InteractiveUI.hs | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/ghc/InteractiveUI.hs b/ghc/InteractiveUI.hs
    index a5aaa7e..578416e 100644
    a b completeShowOptions = wrapCompleter flagWordBreakChars $ \w -> do 
    24332433  return (filter (w `isPrefixOf`) opts) 
    24342434    where opts = ["args", "prog", "prompt", "prompt2", "editor", "stop", 
    24352435                     "modules", "bindings", "linker", "breaks", 
    2436                      "context", "packages", "language"] 
     2436                     "context", "packages", "language", "imports"] 
    24372437 
    24382438completeShowiOptions = wrapCompleter flagWordBreakChars $ \w -> do 
    24392439  return (filter (w `isPrefixOf`) ["language"])