haskell-tools-refactor-0.9.0.0: Refactoring Tool for Haskell

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Refactor.Refactoring

Description

Defines a representation to represent refactorings that can be executed on the codebase. Refactorings are differentiated on their signatures (inputs needed to execute).

Synopsis

Documentation

performCommand Source #

Arguments

:: [RefactoringChoice dom]

The set of available refactorings

-> [String]

The refactoring command

-> Either FilePath (ModuleDom dom)

The module in which the refactoring is performed

-> [ModuleDom dom]

Other modules

-> Ghc (Either String [RefactorChange dom]) 

Executes a given command (choosen from the set of available refactorings) on the selected module and given other modules.

refactorCommands :: [RefactoringChoice dom] -> [String] Source #

Gets the name of possible refactorings.