This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kate, Haskell: how to configure CTags plugin

Tags: None
(comma "," separated)
Tyrn
Registered Member
Posts
15
Karma
0
Hi,

I've been trying to employ Kate as a Haskell IDE. Everything is very satisfactory, except for CTags plugin, which defies my effort to configure it.

Default CTags command:
Code: Select all
ctags -R --c++-types=+px --extra=+q --excmd=pattern --exclude=Makefile --exclude=.

Surprisingly, it runs on a haskell project without error messages, generating a huge ctags file about 200Mb. Less surprisingly, it won't work.
There is a discussion on stackoverflow: Haskell: ctags (and Kate editor). Specialized Haskell ctags generator is hasktags. My effort:

CTags database file (hs-procr is the project directory):
Code: Select all
/home/alexey/spaces/haskell/hs-procr/tags

Ctags command:
Code: Select all
stack exec -- hasktags --ignore-close-implementation --ctags .

This configuration works, just basically. The generated tags file is very human readable, but quite small, about 3K. Go to definition/declaration always reports "No hits found". Is there a way to make it work properly?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]