ghc-lib-0.1.0: The GHC API, decoupled from GHC versions

Safe HaskellNone
LanguageHaskell2010

TcPat

Documentation

tcLetPat :: (Name -> Maybe TcId) -> LetBndrSpec -> LPat GhcRn -> ExpSigmaType -> TcM a -> TcM (LPat GhcTcId, a) Source #

newLetBndr :: LetBndrSpec -> Name -> TcType -> TcM TcId Source #

data LetBndrSpec Source #

Constructors

Instances
Instance details

Defined in TcPat

tcPat :: HsMatchContext Name -> LPat GhcRn -> ExpSigmaType -> TcM a -> TcM (LPat GhcTcId, a) Source #

tcPat_O Source #

Arguments

-> CtOrigin

origin to use if the type needs inst'ing

-> LPat GhcRn
-> TcM a
-> TcM (LPat GhcTcId, a)

A variant of tcPat that takes a custom origin

tcPats :: HsMatchContext Name -> [LPat GhcRn] -> [ExpSigmaType] -> TcM a -> TcM ([LPat GhcTcId], a) Source #

addDataConStupidTheta :: DataCon -> [TcType] -> TcM () Source #

badFieldCon :: ConLike -> FieldLabelString -> SDoc Source #

polyPatSig :: TcType -> SDoc Source #

AltStyle によって変換されたページ (->オリジナル) /