ghc-7.6.1: The GHC API

Safe HaskellNone

HsImpExp

Synopsis

Documentation

data ImportDecl name Source

A single Haskell import declaration.

Constructors

ImportDecl 

Fields

ideclName :: Located ModuleName

Module name.

ideclPkgQual :: Maybe FastString

Package qualifier.

ideclSource :: Bool

True = {--} import

ideclSafe :: Bool

True => safe import

ideclQualified :: Bool

True => qualified

ideclImplicit :: Bool

True => implicit import (of Prelude)

ideclAs :: Maybe ModuleName

as Module

ideclHiding :: Maybe (Bool, [LIE name])

(True => hiding, names)

Instances

type LIE name = Located (IE name)Source

data IE name Source

Imported or exported entity.

Constructors

IEVar name 
IEThingAbs name

Class/Type (can't tell)

IEThingAll name

ClassType plus all methodsconstructors

IEThingWith name [name]

ClassType plus some methodsconstructors

IEModuleContents ModuleName

(Export Only)

IEGroup Int HsDocString

Doc section heading

IEDoc HsDocString

Some documentation

IEDocNamed String

Reference to named doc

Instances

Typeable1 IE 
Eq name => Eq (IE name) 
(Typeable (IE name), Data name) => Data (IE name) 
(HasOccName name, OutputableBndr name) => Outputable (IE name) 

ieName :: IE name -> nameSource

ieNames :: IE a -> [a]Source

pprImpExp :: (HasOccName name, OutputableBndr name) => name -> SDocSource