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

How to specify OLD-NAME when using RenameDefinition in the command line refactorer ht-refact #625

Open
SnowOnion opened this issue Oct 11, 2018 · 0 comments

Comments

@SnowOnion
Copy link

The document said the command format is:

RenameDefinition MODULE SRC-RANGE NEW-NAME

But in order to change f x = x + 1 to g x = x + 1, how to specify the old name f?

My usage was like,

➜  try1 ht-refact --no-watch .
Found modules: /Users/sonion/dev/Haskell/use-haskell-tools/try1/Hello.hs
Loaded module: Hello( /Users/sonion/dev/Haskell/use-haskell-tools/try1/Hello.hs) 
RenameDefinition Hello 12:1-14:1 g
No name is selected

Thanks!

@SnowOnion SnowOnion changed the title How to specify OLD-NAME when using RenameDefinition in the command line refactorer ht-refact How to specify OLD-NAME when using RenameDefinition in the command line refactorer ht-refact Oct 11, 2018
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

No branches or pull requests

1 participant