Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add command 'findsymbol' #23

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Add command 'findsymbol' #23

wants to merge 17 commits into from

Conversation

dan-t
Copy link

@dan-t dan-t commented Oct 21, 2013

Hi Bit,

I've added the command 'findsymbol', to be able find the modules where a given symbol is defined.

Greetings,
Daniel

@bitc
Copy link
Owner

bitc commented Nov 10, 2013

Interesting. Could you please explain a bit more what this does, maybe with an example? And the difference between the "info" command? Thanks!

@dan-t
Copy link
Author

dan-t commented Nov 11, 2013

Hi Bit,

On Sun, Nov 10, 2013 at 03:32:19PM -0800, Bit Connor wrote:

Interesting. Could you please explain a bit more what this does, maybe with an
example? And the difference between the "info" command? Thanks!

The 'info' command shows the type information of a given symbol and in
which module the symbol is defined. The basis for this command are the
already imported moduls.

The 'findsymbol' command should be the basis for extending the import
list. The idea is, that 'findsymbol' finds all occurences of the given
symbol, if it's defined in multiple modules, than the user can choose
which one the wants and than the import list gets extended, if necessary.

Until now I didn't have put that much time into the whole thing, but I
have started a simple command line program which should be extending
the import list.

Would you have something against a 'hdevtools import' command:
hdevtools import 'Control.Applicative' '<$>' ?

From a user perspective it would be easier if he just needs to install
'hdevtools' and 'vim-hdevtools' to get the whole thing working.

Greetings,
Daniel

@dan-t
Copy link
Author

dan-t commented Jan 4, 2014

Hi Bit,

I have done some further changes which I try to summarize.

The first few commits are about better error handling for
the 'findsymbol' command and about catching GHC exceptions
when reading module informations.

The bigger change is about allowing the 'findsymbol' command
to take any number of source files.

This is the basis to be able to extend the import list by
modules of the current project.

Greetings,
Daniel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants