apply-refact-0.8.2.1: Perform refactorings specified by the refact library.

Safe HaskellNone
LanguageHaskell2010

Refact.Apply

Contents

Synopsis

Documentation

runRefactoring :: Data a => Anns -> a -> Refactoring SrcSpan -> State Int (Anns, a) Source #

Peform a Refactoring.

applyRefactorings Source #

Arguments

:: Maybe (Int, Int)

Apply hints relevant to a specific position

-> [(String, [Refactoring SrcSpan])]

A list of (hint description, refactorings) pairs.

-> FilePath

Target file

-> IO String 

Apply a set of refactorings as supplied by hlint

Support for runPipe in the main process

data Verbosity Source #

Constructors

Silent 
Normal 
Loud