| Safe Haskell | None | 
|---|---|
| Language | Haskell98 | 
Language.Haskell.Refact.Refactoring.DupDef
- duplicateDef :: RefactSettings -> Options -> FilePath -> String -> SimpPos -> IO [FilePath]
 - compDuplicateDef :: FilePath -> String -> SimpPos -> RefactGhc [ApplyRefacResult]
 
Documentation
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.
compDuplicateDef :: FilePath -> String -> SimpPos -> RefactGhc [ApplyRefacResult] Source #