hsimport-0.11.0: Extend the import list of a Haskell source file

Safe HaskellNone
LanguageHaskell2010

HsImport.ImportChange

Synopsis

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 # 
Instance details

Defined in HsImport.ImportChange