RefactoringTools / HaRe

The Haskell Refactoring Tool
http://www.cs.kent.ac.uk/projects/refactor-fp/
Other
139 stars 32 forks source link

(error "SafeList") #61

Open lgastako opened 7 years ago

lgastako commented 7 years ago

I am trying to get HaRe set up in emacs and when I try to rename a local variable it asks what new name I want to use, then prints something like this in the minibuffer:

[1 of 5]
RefSet

I tried running ghc-hare --version as the README suggets, and I get an error, but it does also show the version:

% ghc-hare --version
unrecognized option `--version'

ghc-hare version 0.8.2.1
Usage:
     ghc-hare demote [-g GHC_opt1 -g GHC_opt2 ...] filename line col
     ghc-hare dupdef [-g GHC_opt1 -g GHC_opt2 ...] filename newname line col
     ghc-hare iftocase [-g GHC_opt1 -g GHC_opt2 ...] filename startline startcol endline endcol
     ghc-hare liftOneLevel [-g GHC_opt1 -g GHC_opt2 ...] filename line col
     ghc-hare liftToTopLevel [-g GHC_opt1 -g GHC_opt2 ...] filename line col
     ghc-hare rename [-g GHC_opt1 -g GHC_opt2 ...] filename newname line col
     ghc-hare help

  -v  --verbose  debug logging on

So I tried manually running it on a file and I get:

% ghc-hare rename src/Focus/Wheatley/DSL/Subs/BlobSearch.hs 29 39
(error "SafeList")

I searched for occurences of SafeList in the HaRe source but came up empty handed so I'm a bit stumped as to how to proceed.

Any guidance would be appreciated, as HaRe looks awesome!