Skip to main content
Article thumbnail
Location of Repository

Tool Support for Refactoring Functional Programs

By Huiqing Li and Simon Thompson


We present the Haskell Refactorer, HaRe, and the Erlang Refactorer, Wrangler, as examples of fully-functional refactoring tools for functional programming languages. HaRe and Wrangler are designed to handle multi-module projects in complete languages: Haskell 98 and Erlang/OTP. They are embedded in Emacs, (gVim and Eclipse) and respect programmer layout styles. In discussing the construction of HaRe and Wrangler, we comment on the different challenges presented by Haskell and Erlang due to their differences in syntax, semantics and pragmatics. In particular, we examine the sorts of analysis that underlie our systems

Topics: QA76
Publisher: Assoc Computing Machinery
Year: 2008
OAI identifier:

Suggested articles


  1. (2007). Programming Erlang. Pragmatic Bookshelf,
  2. (2004). Erlang Syntax Tools. doc/doc-5.4.12/lib/syntax_tools-1.4.3,
  3. (2002). Distel: Distributed Emacs Lisp (for Erlang).
  4. (2001). Generic Programming with Strafunski.
  5. (2003). Tool Support for Refactoring Functional Programs. doi
  6. (2006). A Comparative Study of Refactoring Haskell and Erlang Programs. doi
  7. (2008). Clone Detection and Removal for Erlang/OTP within a Refactoring Environment. doi
  8. (2005). The Haskell Refactorer, HaRe, and its API. doi
  9. (2008). Refactoring with Wrangler, updated. doi
  10. (2006). Refactoring Erlang Programs.
  11. (2003). 98 Language and Libraries: the Revised Report.
  12. (2008). Mechanical Verification of Refactorings. doi
  13. (2006). L´ aszl´ o L¨ ovei, Zolt´ an Horv´ ath, Tam´ as Kozsik, Anik´ o V´ ıg, and Tam´ as Nagy. Refactoring Erlang Programs.

To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.