Safe Haskell | None |
---|---|
Language | Haskell2010 |
Representation of modules, their collections, refactoring changes and exceptions.
- type UnnamedModule = Ann UModule IdDom SrcTemplateStage
- type ModuleDom = (SourceFileKey, UnnamedModule)
- data SourceFileKey = SourceFileKey {}
- data RefactorChange
- data RefactorException
- moduleSourceFile :: String -> FilePath
- sourceFileModule :: FilePath -> String
- sfkModuleName :: Lens SourceFileKey SourceFileKey String String
- sfkFileName :: Lens SourceFileKey SourceFileKey FilePath FilePath
Documentation
type UnnamedModule = Ann UModule IdDom SrcTemplateStage Source #
A type for the input and result of refactoring a module
type ModuleDom = (SourceFileKey, UnnamedModule) Source #
The name of the module and the AST
data SourceFileKey Source #
Module name and marker to separate .hs-boot module definitions. Specifies a source file in a working directory.
data RefactorChange Source #
Change in the project, modification or removal of a module.
data RefactorException Source #
Exceptions that can occur while loading modules or during internal operations (not during performing the refactor).
moduleSourceFile :: String -> FilePath Source #
Transforms module name to a .hs file name relative to the source root directory.
sourceFileModule :: FilePath -> String Source #
Transforms a source root relative file name into module name.