Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to 'go to definition' for user defined function in Leksah?

Tags:

I can do this for system functions like const by selecting it, right clicking and choosing search(metadata). The same does not work for user defined functions.

How do you do such a search?

If it is impossible for user defined functions, how do you read an already existing Haskell project and jump between definitions and invocations?

Vim + ctags work for user defined functions only, and are not as powerful as cscope for c/c++ source.

like image 743
wenlong Avatar asked Oct 10 '11 11:10

wenlong


1 Answers

I tried what you said with user-defined functions and it works fine for me. I select name of function, right click, search(metadata) and it appears in the search tab to the right. Then i click "go to definition" and it takes me to definition. Maybe you should try restarting Leksah? I noticed that sometimes it doesn't recognize functions immediately as I write them, but if you restart it, it will recognize them.

like image 153
Martinsos Avatar answered Oct 17 '22 00:10

Martinsos