Safe Haskell | None |
---|---|
Language | Haskell2010 |
HsImport.ImportChange
Synopsis
- data ImportChange
- importChanges :: ModuleImport -> Maybe SymbolImport -> Module -> [ImportChange]
- hasImportError :: ImportChange -> Bool
- toErrorMessage :: ImportChange -> Maybe ErrorMessage
Documentation
data ImportChange Source #
How the import declarations should be changed
Constructors
ReplaceImportAt SrcSpan ImportDecl | replace the import declaration at SrcSpan |
AddImportAfter SrcLine ImportDecl | add import declaration after SrcLine |
AddImportAtEnd ImportDecl | add import declaration at end of source file |
FindImportPos ImportDecl | search for an insert position for the import declaration |
NoImportChange | no changes of the import declarations |
ImportError ErrorMessage | import error |
Instances
Show ImportChange Source # | |
Defined in HsImport.ImportChange Methods showsPrec :: Int -> ImportChange -> ShowS # show :: ImportChange -> String # showList :: [ImportChange] -> ShowS # |
importChanges :: ModuleImport -> Maybe SymbolImport -> Module -> [ImportChange] Source #
hasImportError :: ImportChange -> Bool Source #