Skip to content
alanz edited this page Jan 25, 2013 · 8 revisions

Welcome to the HaRe wiki!

There is currently an effort on the go to bring HaRe into a more useful state, by firstly getting it to compile with GHC 7.4.x, and secondly to get it to use the GHC API to provide the parse tree for the refactoring, snd SYB for the generic processing. This paves the way to extending support for haskell2010.

The work is currently taking place in the https://github.com/RefactoringTools/HaRe/tree/ghc-api branch, it should move into the main repo once it stabilises.

The IRC channel for developers is #haskell-refactorer on freenode.

The alanz/HaRe/master compiles with GHC 7.4.1, provided a fix is applied to hint-0.3.3.4 to work around a bug where if an option is set prior to loading a file, the ImplicitPrelude setting is lost, and as a result the prelude is not included when the file is parsed, leading to parse failure. This is reported in http://darcsden.com/jcpetruzza/hint/issue/1, where the workaround is

cabal unpack hint-0.3.3.4
Edit hint-0.3.3.4/src/Hint/Extension.hs
  Insert
               | ImplicitPrelude -- ++AZ++
  after line 52, in the declaration of data Extension
cd hint-0.3.3.4
cabal install

Please note that this work is in progress, and there are even fewer guarantees than usual. I strongly suggest you do not apply refactorings to any code you care about, unless you have a version control system backing you up and you commit often.

There is also a Google+ community called HaRe, at https://plus.google.com/u/0/communities/116266567145785623821

Clone this wiki locally