Safe Haskell | None |
---|---|
Language | Haskell2010 |
- type LImportDecl name = Located (ImportDecl name)
- data ImportDecl name = ImportDecl {
- ideclSourceSrc :: Maybe SourceText
- ideclName :: Located ModuleName
- ideclPkgQual :: Maybe StringLiteral
- ideclSource :: Bool
- ideclSafe :: Bool
- ideclQualified :: Bool
- ideclImplicit :: Bool
- ideclAs :: Maybe ModuleName
- ideclHiding :: Maybe (Bool, Located [LIE name])
- simpleImportDecl :: ModuleName -> ImportDecl name
- type LIE name = Located (IE name)
- data IE name
- = IEVar (Located name)
- | IEThingAbs (Located name)
- | IEThingAll (Located name)
- | IEThingWith (Located name) IEWildcard [Located name] [Located (FieldLbl name)]
- | IEModuleContents (Located ModuleName)
- | IEGroup Int HsDocString
- | IEDoc HsDocString
- | IEDocNamed String
- data IEWildcard
- ieName :: IE name -> name
- ieNames :: IE a -> [a]
- pprImpExp :: (HasOccName name, OutputableBndr name) => name -> SDoc
Documentation
type LImportDecl name Source #
= Located (ImportDecl name) | When in a list this may have |
data ImportDecl name Source #
A single Haskell import
declaration.
ImportDecl | |
|
Data name => Data (ImportDecl name) # | |
(OutputableBndr name, HasOccName name) => Outputable (ImportDecl name) # | |
simpleImportDecl :: ModuleName -> ImportDecl name Source #
Imported or exported entity.
IEVar (Located name) | |
IEThingAbs (Located name) | Class/Type (can't tell)
- |
IEThingAll (Located name) | ClassType plus all methodsconstructors |
IEThingWith (Located name) IEWildcard [Located name] [Located (FieldLbl name)] | ClassType plus some methodsconstructors
and record fields; see Note [IEThingWith]
- |
IEModuleContents (Located ModuleName) | (Export Only) |
IEGroup Int HsDocString | Doc section heading |
IEDoc HsDocString | Some documentation |
IEDocNamed String | Reference to named doc |
Eq name => Eq (IE name) # | |
Data name => Data (IE name) # | |
(HasOccName name, OutputableBndr name) => Outputable (IE name) # | |
pprImpExp :: (HasOccName name, OutputableBndr name) => name -> SDoc Source #