Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- runRefactoring :: Data a => Anns -> a -> Refactoring SrcSpan -> State Int (Anns, a)
- applyRefactorings :: Maybe (Int, Int) -> [(String, [Refactoring SrcSpan])] -> FilePath -> IO String
- data Verbosity
- rigidLayout :: DeltaOptions
- removeOverlap :: Verbosity -> [(String, [Refactoring SrcSpan])] -> [(String, [Refactoring SrcSpan])]
- refactOptions :: PrintOptions Identity String
- type Errors = (SrcSpan, String)
- onError :: String -> Errors -> a
- mkErr :: DynFlags -> SrcSpan -> String -> Errors
Documentation
runRefactoring :: Data a => Anns -> a -> Refactoring SrcSpan -> State Int (Anns, a) Source #
Peform a Refactoring
.
:: 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
removeOverlap :: Verbosity -> [(String, [Refactoring SrcSpan])] -> [(String, [Refactoring SrcSpan])] Source #