ghc-7.10.2: The GHC API

Safe HaskellNone
LanguageHaskell2010

HsPat

Synopsis

Documentation

type InPat id = LPat id

type OutPat id = LPat id

type LPat id = Located (Pat id)

data HsConDetails arg rec

Constructors

PrefixCon [arg] 
RecCon rec 
InfixCon arg arg 

Instances

(Data arg, Data rec) => Data (HsConDetails arg rec) 

data HsRecFields id arg

Constructors

HsRecFields 

Fields

rec_flds :: [LHsRecField id arg]
 
rec_dotdot :: Maybe Int
 

Instances

(Data id, Data arg) => Data (HsRecFields id arg) 
(OutputableBndr id, Outputable arg) => Outputable (HsRecFields id arg) 

data HsRecField id arg

Constructors

HsRecField 

Fields

hsRecFieldId :: Located id
 
hsRecFieldArg :: arg
 
hsRecPun :: Bool
 

Instances

(Data id, Data arg) => Data (HsRecField id arg) 
(OutputableBndr id, Outputable arg) => Outputable (HsRecField id arg) 

type LHsRecField id arg = Located (HsRecField id arg)

hsRecFields :: HsRecFields id arg -> [id]

mkPrefixConPat :: DataCon -> [OutPat id] -> [Type] -> OutPat id