Ticket #13 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years ago

do not use shortcuts of ghci commands

Reported by: phercek Owned by: claus
Priority: major Milestone:
Component: --- Version:
Keywords: Cc:

Description

Actually, I noticed only one problem like this: :i was used instead of :info. Shortcuts should not be used in haskellmode source code since they may interfere with user defined commands. Here is the patch:

--- ghc.vim.org	2009-09-16 12:51:42.000000000 +0200
+++ ghc.vim	2009-09-16 12:59:16.000000000 +0200
@@ -243,7 +243,7 @@
 
 function! GHC_Info(what)
   " call GHC_HaveTypes()
-  let output = system(g:ghc . ' ' . b:ghc_staticoptions . ' -v0 --interactive ' . expand("%"), ":i ". a:what)
+  let output = system(g:ghc . ' ' . b:ghc_staticoptions . ' -v0 --interactive ' . expand("%"), ":info ". a:what)
   return output
 endfunction
 

Change History

Changed 4 years ago by haskellmode

  • status changed from new to closed
  • resolution set to fixed

Thanks, you're right. This change is in my working copy and will be in the next public version.

I had to switch to long commands when the debugger stole things like ':b'. If you notice any other leftovers, please reopen.

Note: See TracTickets for help on using tickets.