[Haskell-cafe] Re: IDE support
Marc Weber
marco-oweber at gmx.de
Sat Apr 28 04:15:55 EDT 2007
On Fri, Apr 27, 2007 at 08:05:53PM +0000, Georg Sauthoff wrote:
> On 2007-04-22, Marc Weber <marco-oweber at gmx.de> wrote:
>
> Hi,
>
> > I've written some completion scripts for vim. Don't know wether you can
> > call it an ide. Also tagging source is supported by one command.
>
> what tagging program do you use?
I'm using hasktags beeing distributed with ghc. There has been another
topic about tagging programs for haskell some time ago.
You can find some basic installation instructions here..
http://www.mawercer.de/marcweber/vimlib_haskell.html
But it's a little bit out of date.
I'll work on it again next week.
(I don't know how much I'll continue working
on improving the vim scripts because I should hack vim to make it haskell
scriptable .. ;) Then this kind of hacking will be both: faster and better
The files beeing created are now located in ~/vl_store .
Function completion
should work out of the box (as long as you only want to complete functions
defined in current buffer).
You can see a lot of
AddTabCompletion '\s+\w\s*"$' '' ' ++' 'ts'
lines. The syntax has changed. see vl_repo/ftplugin/haskell_vimlib.vim for examples.
To create tags use
:TagCurrentDirTagGroupHaskell (use this to update tags as well)
and use
:ModuleCacheAddCurrentDir
to add all modules to the list of know modules (those will be used for completion regardless of you .cabal whatsoever settings)
If you run into any trouble don't hesitate to ask.
If you want I can show you how to set it up in a shared ssh session.
Marc
More information about the Haskell-Cafe
mailing list