GHC.Tc.Gen.Head
Documentation
data HsExprArg (p :: TcPass) Source #
Constructors
EValArg | |
Fields
| |
ETypeArg | |
EPrag AppCtxt (HsPragE (GhcPass (XPass p))) | |
EWrap EWrap |
Instances
OutputableBndrId (XPass p) => Outputable (HsExprArg p) Source # | |
data EValArg (p :: TcPass) where Source #
Instances
OutputableBndrId (XPass p) => Outputable (EValArg p) Source # | |
Instances
appCtxtLoc :: AppCtxt -> SrcSpan Source #
insideExpansion :: AppCtxt -> Bool Source #
isHsValArg :: HsExprArg id -> Bool Source #
countLeadingValArgs :: [HsExprArg id] -> Int Source #
isVisibleArg :: HsExprArg id -> Bool Source #
countVisAndInvisValArgs :: [HsExprArg id] -> Arity Source #
Count visible and invisible value arguments in a list
of HsExprArg
arguments.
countHsWrapperInvisArgs :: HsWrapper -> Arity Source #
Counts the number of invisible term-level arguments applied by an HsWrapper
.
Precondition: this wrapper contains no abstractions.
tcInferAppHead :: (HsExpr GhcRn, AppCtxt) -> [HsExprArg 'TcpRn] -> TcM (HsExpr GhcTc, TcSigmaType) Source #
tcInferAppHead_maybe :: HsExpr GhcRn -> [HsExprArg 'TcpRn] -> TcM (Maybe (HsExpr GhcTc, TcSigmaType)) Source #
obviousSig :: HsExpr GhcRn -> Maybe (LHsSigWcType GhcRn) Source #
tyConOf :: FamInstEnvs -> TcSigmaType -> Maybe TyCon Source #
tyConOfET :: FamInstEnvs -> ExpRhoType -> Maybe TyCon Source #
lookupParents :: Bool -> RdrName -> RnM [(RecSelParent, GlobalRdrElt)] Source #
fieldNotInType :: RecSelParent -> RdrName -> TcRnMessage Source #
notSelector :: Name -> TcRnMessage Source #
nonBidirectionalErr :: Outputable name => name -> TcRnMessage Source #