Safe Haskell | None |
---|---|
Language | Haskell2010 |
Representation of modules, their collections, refactoring changes and exceptions.
- type UnnamedModule dom = Ann UModule dom SrcTemplateStage
- type ModuleDom dom = (SourceFileKey, UnnamedModule dom)
- data SourceFileKey = SourceFileKey {}
- data RefactorChange dom
- = ContentChanged {
- fromContentChanged :: ModuleDom dom
- | ModuleRemoved { }
- | ModuleCreated { }
- = ContentChanged {
- data RefactorException
- moduleSourceFile :: String -> FilePath
- sourceFileModule :: FilePath -> String
- sfkModuleName :: Lens SourceFileKey SourceFileKey String String
- sfkFileName :: Lens SourceFileKey SourceFileKey FilePath FilePath
Documentation
type UnnamedModule dom = Ann UModule dom SrcTemplateStage Source #
A type for the input and result of refactoring a module
type ModuleDom dom = (SourceFileKey, UnnamedModule dom) 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 dom Source #
Change in the project, modification or removal of a module.
Show (RefactorChange dom) Source # | |
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.