ghc-7.0.3: The GHC API

HsPat

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 

data HsRecFields id arg

Constructors

HsRecFields 

Fields

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

data HsRecField id arg

Constructors

HsRecField 

Fields

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

hsRecFields :: HsRecFields id arg -> [id]

mkCharLitPat :: Char -> OutPat id

isBangHsBind :: HsBind id -> Bool

isBangLPat :: LPat id -> Bool

hsPatNeedsParens :: Pat a -> Bool