GHC.Tc.Gen.Sig
Documentation
Constructors
TcIdSig TcIdSigInfo | |
TcPatSynSig TcPatSynInfo |
Instances
data TcIdSigInfo Source #
Constructors
CompleteSig | |
PartialSig | |
Fields
|
Instances
Outputable TcIdSigInfo Source # | |
Defined in GHC.Tc.Types Methods ppr :: TcIdSigInfo -> SDoc Source # |
data TcIdSigInst Source #
Instances
Outputable TcIdSigInst Source # | |
Defined in GHC.Tc.Types Methods ppr :: TcIdSigInst -> SDoc Source # |
data TcPatSynInfo Source #
Constructors
TPSI | |
Fields |
Instances
Outputable TcPatSynInfo Source # | |
Defined in GHC.Tc.Types Methods ppr :: TcPatSynInfo -> SDoc Source # |
isPartialSig :: TcIdSigInst -> Bool Source #
tcIdSigName :: TcIdSigInfo -> Name Source #
tcSigInfoName :: TcSigInfo -> Name Source #
isCompleteHsSig :: LHsSigWcType GhcRn -> Bool Source #
If there are no wildcards, return a LHsSigWcType
lhsSigWcTypeContextSpan :: LHsSigWcType GhcRn -> ReportRedundantConstraints Source #
Find the location of the top-level context of a HsType. For example:
forall a b. (Eq a, Ord b) => blah ^^^^^^^^^^^^^
If there is none, return Nothing
tcUserTypeSig :: SrcSpan -> LHsSigWcType GhcRn -> Maybe Name -> TcM TcIdSigInfo Source #
completeSigFromId :: UserTypeCtxt -> Id -> TcIdSigInfo Source #
tcInstSig :: TcIdSigInfo -> TcM TcIdSigInst Source #
tcSpecPrags :: Id -> [LSig GhcRn] -> TcM [LTcSpecPrag] Source #
tcSpecWrapper :: UserTypeCtxt -> TcType -> TcType -> TcM HsWrapper Source #
tcImpPrags :: [LSig GhcRn] -> TcM [LTcSpecPrag] Source #