ghc-7.6.1.20121125: The GHC API

Safe HaskellNone

HsTypes

Synopsis

Documentation

type LHsType name = Located (HsType name)Source

type HsKind name = HsType nameSource

type LHsKind name = Located (HsKind name)Source

data HsTyVarBndr name Source

Constructors

UserTyVar name 
KindedTyVar name (LHsKind name) 

Instances

data LHsTyVarBndrs name Source

Constructors

HsQTvs 

Fields

hsq_kvs :: [Name]
 
hsq_tvs :: [LHsTyVarBndr name]
 

data HsWithBndrs thing Source

Constructors

HsWB 

Fields

hswb_cts :: thing
 
hswb_kvs :: [Name]
 
hswb_tvs :: [Name]
 

Instances

type HsContext name = [LHsType name]Source

newtype HsIPName Source

These names are used eary on to store the names of implicit parameters. They completely disappear after type-checking.

Constructors

HsIPName FastString 

type LBangType name = Located (BangType name)Source

type BangType name = HsType nameSource

data ConDeclField name Source

Instances

hsExplicitTvs :: LHsType name -> [name]Source

splitHsFunType :: LHsType name -> ([LHsType name], LHsType name)Source

mkHsOpTy :: LHsType name -> Located name -> LHsType name -> HsType nameSource