Safe Haskell | None |
---|---|
Language | Haskell98 |
- data RefactSettings = RefSet {
- rsetVerboseLevel :: !VerboseLevel
- rsetEnabledTargets :: (Bool, Bool, Bool, Bool)
- data VerboseLevel
- defaultSettings :: RefactSettings
- type SimpPos = (Int, Int)
- data Options :: *
- defaultOptions :: Options
- ifToCase :: RefactSettings -> Options -> FilePath -> SimpPos -> SimpPos -> IO [FilePath]
- duplicateDef :: RefactSettings -> Options -> FilePath -> String -> SimpPos -> IO [FilePath]
- liftToTopLevel :: RefactSettings -> Options -> FilePath -> SimpPos -> IO [FilePath]
- liftOneLevel :: RefactSettings -> Options -> FilePath -> SimpPos -> IO [FilePath]
- demote :: RefactSettings -> Options -> FilePath -> SimpPos -> IO [FilePath]
- rename :: RefactSettings -> Options -> FilePath -> String -> SimpPos -> IO [FilePath]
- roundTrip :: RefactSettings -> Options -> FilePath -> IO [FilePath]
Data Structures
data RefactSettings Source
RefSet | |
|
Re-exported from ghc-mod
Refactorings
ifToCase :: RefactSettings -> Options -> FilePath -> SimpPos -> SimpPos -> IO [FilePath] Source
Convert an if expression to a case expression
duplicateDef :: RefactSettings -> Options -> FilePath -> String -> SimpPos -> IO [FilePath] Source
This refactoring duplicates a definition (function binding or simple pattern binding) at the same level with a new name provided by the user. The new name should not cause name clash/capture.
liftToTopLevel :: RefactSettings -> Options -> FilePath -> SimpPos -> IO [FilePath] Source
Lift a definition to the top level
liftOneLevel :: RefactSettings -> Options -> FilePath -> SimpPos -> IO [FilePath] Source
Move a definition one level up from where it is now
demote :: RefactSettings -> Options -> FilePath -> SimpPos -> IO [FilePath] Source
Move a definition one level down