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

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.Refactor.Perform

Description

Defines common utilities for using refactorings. Provides an interface for both demo, command line and integrated tools.

Synopsis

Documentation

performCommand Source #

Arguments

:: (HasModuleInfo dom, DomGenerateExports dom, OrganizeImportsDomain dom, DomainRenameDefinition dom, ExtractBindingDomain dom, GenerateSignatureDomain dom) 
=> RefactorCommand 
-> ModuleDom dom

The module in which the refactoring is performed

-> [ModuleDom dom]

Other modules

-> Ghc (Either String [RefactorChange dom]) 

Executes a given command on the selected module and given other modules

readCommand :: String -> Either String RefactorCommand Source #

Recognize a command from its textual representation

analyzeCommand :: String -> [String] -> Either String RefactorCommand Source #

Check the parts and return the command