| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
GHC.Iface.Syntax
Contents
Synopsis
- module GHC.Iface.Type
- data IfaceDecl
- = IfaceId { }
- | IfaceData { }
- | IfaceSynonym {
- ifName :: IfaceTopBndr
- ifRoles :: [Role]
- ifBinders :: [IfaceTyConBinder]
- ifResKind :: IfaceKind
- ifSynRhs :: IfaceType
- | IfaceFamily { }
- | IfaceClass {
- ifName :: IfaceTopBndr
- ifRoles :: [Role]
- ifBinders :: [IfaceTyConBinder]
- ifFDs :: [FunDep IfLclName]
- ifBody :: IfaceClassBody
- | IfaceAxiom {
- ifName :: IfaceTopBndr
- ifTyCon :: IfaceTyCon
- ifRole :: Role
- ifAxBranches :: [IfaceAxBranch]
- | IfacePatSyn {
- ifName :: IfaceTopBndr
- ifPatIsInfix :: Bool
- ifPatMatcher :: (IfExtName, Bool)
- ifPatBuilder :: Maybe (IfExtName, Bool)
- ifPatUnivBndrs :: [IfaceForAllSpecBndr]
- ifPatExBndrs :: [IfaceForAllSpecBndr]
- ifPatProvCtxt :: IfaceContext
- ifPatReqCtxt :: IfaceContext
- ifPatArgs :: [IfaceType]
- ifPatTy :: IfaceType
- ifFieldLabels :: [FieldLabel]
- data IfaceFamTyConFlav
- data IfaceClassOp = IfaceClassOp IfaceTopBndr IfaceType (Maybe (DefMethSpec IfaceType))
- data IfaceAT = IfaceAT IfaceDecl (Maybe IfaceType)
- data IfaceConDecl = IfCon {
- ifConName :: IfaceTopBndr
- ifConWrapper :: Bool
- ifConInfix :: Bool
- ifConExTCvs :: [IfaceBndr]
- ifConUserTvBinders :: [IfaceForAllSpecBndr]
- ifConEqSpec :: IfaceEqSpec
- ifConCtxt :: IfaceContext
- ifConArgTys :: [(IfaceMult, IfaceType)]
- ifConFields :: [FieldLabel]
- ifConStricts :: [IfaceBang]
- ifConSrcStricts :: [IfaceSrcBang]
- data IfaceConDecls
- type IfaceEqSpec = [(IfLclName, IfaceType)]
- data IfaceExpr
- = IfaceLcl IfLclName
- | IfaceExt IfExtName
- | IfaceType IfaceType
- | IfaceCo IfaceCoercion
- | IfaceTuple TupleSort [IfaceExpr]
- | IfaceLam IfaceLamBndr IfaceExpr
- | IfaceApp IfaceExpr IfaceExpr
- | IfaceCase IfaceExpr IfLclName [IfaceAlt]
- | IfaceECase IfaceExpr IfaceType
- | IfaceLet (IfaceBinding IfaceLetBndr) IfaceExpr
- | IfaceCast IfaceExpr IfaceCoercion
- | IfaceLit Literal
- | IfaceLitRubbish TypeOrConstraint IfaceType
- | IfaceFCall ForeignCall IfaceType
- | IfaceTick IfaceTickish IfaceExpr
- data IfaceAlt = IfaceAlt IfaceConAlt [IfLclName] IfaceExpr
- data IfaceLetBndr = IfLetBndr IfLclName IfaceType IfaceIdInfo IfaceJoinInfo
- data IfaceJoinInfo
- type IfaceBinding b = IfaceBindingX IfaceExpr b
- data IfaceBindingX r b
- = IfaceNonRec b r
- | IfaceRec [(b, r)]
- data IfaceMaybeRhs
- data IfaceConAlt
- type IfaceIdInfo = [IfaceInfoItem]
- data IfaceIdDetails
- data IfaceUnfolding
- = IfCoreUnfold UnfoldingSource IfUnfoldingCache IfGuidance IfaceExpr
- | IfDFunUnfold [IfaceBndr] [IfaceExpr]
- data IfGuidance
- data IfaceInfoItem
- data IfaceRule = IfaceRule {}
- data IfaceAnnotation = IfaceAnnotation {}
- type IfaceAnnTarget = AnnTarget OccName
- data IfaceWarnings
- data IfaceWarningTxt
- data IfaceStringLiteral = IfStringLiteral SourceText FastString
- data IfaceClsInst = IfaceClsInst {}
- data IfaceFamInst = IfaceFamInst {}
- data IfaceTickish
- data IfaceClassBody
- = IfAbstractClass
- | IfConcreteClass {
- ifClassCtxt :: IfaceContext
- ifATs :: [IfaceAT]
- ifSigs :: [IfaceClassOp]
- ifMinDef :: IfaceBooleanFormula
- data IfaceBooleanFormula
- data IfaceBang
- data IfaceSrcBang = IfSrcBang SrcUnpackedness SrcStrictness
- data SrcUnpackedness
- data SrcStrictness
- data IfaceAxBranch = IfaceAxBranch {
- ifaxbTyVars :: [IfaceTvBndr]
- ifaxbEtaTyVars :: [IfaceTvBndr]
- ifaxbCoVars :: [IfaceIdBndr]
- ifaxbLHS :: IfaceAppArgs
- ifaxbRoles :: [Role]
- ifaxbRHS :: IfaceType
- ifaxbIncomps :: [BranchIndex]
- data IfaceTyConParent
- data IfaceCompleteMatch = IfaceCompleteMatch [IfExtName] (Maybe IfaceTyCon)
- data IfaceLFInfo
- = IfLFReEntrant !RepArity
- | IfLFThunk !Bool !Bool
- | IfLFCon !Name
- | IfLFUnknown !Bool
- | IfLFUnlifted
- data IfaceTopBndrInfo
- type IfaceTopBndr = Name
- putIfaceTopBndr :: BinHandle -> IfaceTopBndr -> IO ()
- getIfaceTopBndr :: BinHandle -> IO IfaceTopBndr
- ifaceDeclImplicitBndrs :: IfaceDecl -> [OccName]
- visibleIfConDecls :: IfaceConDecls -> [IfaceConDecl]
- ifaceDeclFingerprints :: Fingerprint -> IfaceDecl -> [(OccName, Fingerprint)]
- fromIfaceBooleanFormula :: IfaceBooleanFormula -> BooleanFormula IfLclName
- fromIfaceWarnings :: IfaceWarnings -> Warnings GhcRn
- freeNamesIfDecl :: IfaceDecl -> NameSet
- freeNamesIfRule :: IfaceRule -> NameSet
- freeNamesIfFamInst :: IfaceFamInst -> NameSet
- freeNamesIfConDecls :: IfaceConDecls -> NameSet
- pprIfaceExpr :: (SDoc -> SDoc) -> IfaceExpr -> SDoc
- pprIfaceDecl :: ShowSub -> IfaceDecl -> SDoc
- newtype AltPpr = AltPpr (Maybe (OccName -> SDoc))
- data ShowSub = ShowSub {}
- data ShowHowMuch
- showToIface :: ShowSub
- showToHeader :: ShowSub
Documentation
module GHC.Iface.Type
Constructors
data IfaceFamTyConFlav Source #
Constructors
| IfaceDataFamilyTyCon | |
| IfaceOpenSynFamilyTyCon | |
| IfaceClosedSynFamilyTyCon (Maybe (IfExtName, [IfaceAxBranch])) | Name of associated axiom and branches for pretty printing purposes,
or |
| IfaceAbstractClosedSynFamilyTyCon | |
| IfaceBuiltInSynFamTyCon |
Instances
| NFData IfaceFamTyConFlav Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceFamTyConFlav -> () Source # | |
| Binary IfaceFamTyConFlav Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceFamTyConFlav -> IO () Source # put :: BinHandle -> IfaceFamTyConFlav -> IO (Bin IfaceFamTyConFlav) Source # | |
data IfaceClassOp Source #
Constructors
| IfaceClassOp IfaceTopBndr IfaceType (Maybe (DefMethSpec IfaceType)) |
Instances
| NFData IfaceClassOp Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceClassOp -> () Source # | |
| NamedThing IfaceClassOp Source # | |
Defined in GHC.Iface.Syntax | |
| HasOccName IfaceClassOp Source # | |
Defined in GHC.Iface.Syntax Methods occName :: IfaceClassOp -> OccName Source # | |
| Binary IfaceClassOp Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceClassOp -> IO () Source # put :: BinHandle -> IfaceClassOp -> IO (Bin IfaceClassOp) Source # | |
| Outputable IfaceClassOp Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceClassOp -> SDoc Source # | |
data IfaceConDecl Source #
Constructors
| IfCon | |
Fields
| |
Instances
| NFData IfaceConDecl Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceConDecl -> () Source # | |
| NamedThing IfaceConDecl Source # | |
Defined in GHC.Iface.Syntax | |
| HasOccName IfaceConDecl Source # | |
Defined in GHC.Iface.Syntax Methods occName :: IfaceConDecl -> OccName Source # | |
| Binary IfaceConDecl Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceConDecl -> IO () Source # put :: BinHandle -> IfaceConDecl -> IO (Bin IfaceConDecl) Source # | |
data IfaceConDecls Source #
Constructors
| IfAbstractTyCon | |
| IfDataTyCon !Bool [IfaceConDecl] | |
| IfNewTyCon IfaceConDecl |
Instances
| NFData IfaceConDecls Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceConDecls -> () Source # | |
| Binary IfaceConDecls Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceConDecls -> IO () Source # put :: BinHandle -> IfaceConDecls -> IO (Bin IfaceConDecls) Source # | |
type IfaceEqSpec = [(IfLclName, IfaceType)] Source #
Constructors
Constructors
| IfaceAlt IfaceConAlt [IfLclName] IfaceExpr |
Instances
data IfaceLetBndr Source #
Constructors
| IfLetBndr IfLclName IfaceType IfaceIdInfo IfaceJoinInfo |
Instances
| NFData IfaceLetBndr Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceLetBndr -> () Source # | |
| Binary IfaceLetBndr Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceLetBndr -> IO () Source # put :: BinHandle -> IfaceLetBndr -> IO (Bin IfaceLetBndr) Source # | |
data IfaceJoinInfo Source #
Constructors
| IfaceNotJoinPoint | |
| IfaceJoinPoint JoinArity |
Instances
| NFData IfaceJoinInfo Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceJoinInfo -> () Source # | |
| Binary IfaceJoinInfo Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceJoinInfo -> IO () Source # put :: BinHandle -> IfaceJoinInfo -> IO (Bin IfaceJoinInfo) Source # | |
| Outputable IfaceJoinInfo Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceJoinInfo -> SDoc Source # | |
type IfaceBinding b = IfaceBindingX IfaceExpr b Source #
data IfaceBindingX r b Source #
Constructors
| IfaceNonRec b r | |
| IfaceRec [(b, r)] |
Instances
data IfaceMaybeRhs Source #
Constructors
| IfUseUnfoldingRhs | |
| IfRhs IfaceExpr |
Instances
| NFData IfaceMaybeRhs Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceMaybeRhs -> () Source # | |
| Binary IfaceMaybeRhs Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceMaybeRhs -> IO () Source # put :: BinHandle -> IfaceMaybeRhs -> IO (Bin IfaceMaybeRhs) Source # | |
| Outputable IfaceMaybeRhs Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceMaybeRhs -> SDoc Source # | |
data IfaceConAlt Source #
Constructors
| IfaceDefault | |
| IfaceDataAlt IfExtName | |
| IfaceLitAlt Literal |
Instances
| NFData IfaceConAlt Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceConAlt -> () Source # | |
| Binary IfaceConAlt Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceConAlt -> IO () Source # put :: BinHandle -> IfaceConAlt -> IO (Bin IfaceConAlt) Source # | |
| Outputable IfaceConAlt Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceConAlt -> SDoc Source # | |
type IfaceIdInfo = [IfaceInfoItem] Source #
data IfaceIdDetails Source #
Constructors
| IfVanillaId | |
| IfWorkerLikeId [CbvMark] | |
| IfRecSelId | |
| IfDFunId | |
Instances
| NFData IfaceIdDetails Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceIdDetails -> () Source # | |
| Binary IfaceIdDetails Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceIdDetails -> IO () Source # put :: BinHandle -> IfaceIdDetails -> IO (Bin IfaceIdDetails) Source # | |
| Outputable IfaceIdDetails Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceIdDetails -> SDoc Source # | |
data IfaceUnfolding Source #
Constructors
| IfCoreUnfold UnfoldingSource IfUnfoldingCache IfGuidance IfaceExpr | |
| IfDFunUnfold [IfaceBndr] [IfaceExpr] |
Instances
| NFData IfaceUnfolding Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceUnfolding -> () Source # | |
| Binary IfaceUnfolding Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceUnfolding -> IO () Source # put :: BinHandle -> IfaceUnfolding -> IO (Bin IfaceUnfolding) Source # | |
| Outputable IfaceUnfolding Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceUnfolding -> SDoc Source # | |
data IfGuidance Source #
Constructors
| IfNoGuidance | |
| IfWhen Arity Bool Bool |
Instances
| NFData IfGuidance Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfGuidance -> () Source # | |
| Binary IfGuidance Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfGuidance -> IO () Source # put :: BinHandle -> IfGuidance -> IO (Bin IfGuidance) Source # | |
| Outputable IfGuidance Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfGuidance -> SDoc Source # | |
data IfaceInfoItem Source #
Constructors
| HsArity Arity | |
| HsDmdSig DmdSig | |
| HsCprSig CprSig | |
| HsInline InlinePragma | |
| HsUnfold Bool IfaceUnfolding | |
| HsNoCafRefs | |
| HsLFInfo IfaceLFInfo | |
| HsTagSig TagSig |
Instances
| NFData IfaceInfoItem Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceInfoItem -> () Source # | |
| Binary IfaceInfoItem Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceInfoItem -> IO () Source # put :: BinHandle -> IfaceInfoItem -> IO (Bin IfaceInfoItem) Source # | |
| Outputable IfaceInfoItem Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceInfoItem -> SDoc Source # | |
Constructors
| IfaceRule | |
Fields
| |
data IfaceAnnotation Source #
Constructors
| IfaceAnnotation | |
Fields | |
Instances
| NFData IfaceAnnotation Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceAnnotation -> () Source # | |
| Binary IfaceAnnotation Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceAnnotation -> IO () Source # put :: BinHandle -> IfaceAnnotation -> IO (Bin IfaceAnnotation) Source # | |
| Outputable IfaceAnnotation Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceAnnotation -> SDoc Source # | |
type IfaceAnnTarget = AnnTarget OccName Source #
data IfaceWarnings Source #
Constructors
| IfWarnAll IfaceWarningTxt | |
| IfWarnSome [(OccName, IfaceWarningTxt)] [(IfExtName, IfaceWarningTxt)] |
Instances
| NFData IfaceWarnings Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceWarnings -> () Source # | |
| Binary IfaceWarnings Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceWarnings -> IO () Source # put :: BinHandle -> IfaceWarnings -> IO (Bin IfaceWarnings) Source # | |
| Outputable IfaceWarnings Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceWarnings -> SDoc Source # | |
data IfaceWarningTxt Source #
Constructors
| IfWarningTxt (Maybe WarningCategory) SourceText [(IfaceStringLiteral, [IfExtName])] | |
| IfDeprecatedTxt SourceText [(IfaceStringLiteral, [IfExtName])] |
Instances
| NFData IfaceWarningTxt Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceWarningTxt -> () Source # | |
| Binary IfaceWarningTxt Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceWarningTxt -> IO () Source # put :: BinHandle -> IfaceWarningTxt -> IO (Bin IfaceWarningTxt) Source # | |
| Outputable IfaceWarningTxt Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceWarningTxt -> SDoc Source # | |
data IfaceStringLiteral Source #
Constructors
| IfStringLiteral SourceText FastString |
Instances
| NFData IfaceStringLiteral Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceStringLiteral -> () Source # | |
| Binary IfaceStringLiteral Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceStringLiteral -> IO () Source # put :: BinHandle -> IfaceStringLiteral -> IO (Bin IfaceStringLiteral) Source # | |
| Outputable IfaceStringLiteral Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceStringLiteral -> SDoc Source # | |
data IfaceClsInst Source #
Constructors
| IfaceClsInst | |
Fields
| |
Instances
| NFData IfaceClsInst Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceClsInst -> () Source # | |
| Binary IfaceClsInst Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceClsInst -> IO () Source # put :: BinHandle -> IfaceClsInst -> IO (Bin IfaceClsInst) Source # | |
| Outputable IfaceClsInst Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceClsInst -> SDoc Source # | |
data IfaceFamInst Source #
Constructors
| IfaceFamInst | |
Fields | |
Instances
| NFData IfaceFamInst Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceFamInst -> () Source # | |
| Binary IfaceFamInst Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceFamInst -> IO () Source # put :: BinHandle -> IfaceFamInst -> IO (Bin IfaceFamInst) Source # | |
| Outputable IfaceFamInst Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceFamInst -> SDoc Source # | |
data IfaceTickish Source #
Constructors
| IfaceHpcTick Module Int | |
| IfaceSCC CostCentre Bool Bool | |
| IfaceSource RealSrcSpan FastString |
Instances
| NFData IfaceTickish Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceTickish -> () Source # | |
| Binary IfaceTickish Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceTickish -> IO () Source # put :: BinHandle -> IfaceTickish -> IO (Bin IfaceTickish) Source # | |
data IfaceClassBody Source #
Constructors
| IfAbstractClass | |
| IfConcreteClass | |
Fields
| |
Instances
| NFData IfaceClassBody Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceClassBody -> () Source # | |
data IfaceBooleanFormula Source #
Constructors
| IfVar IfLclName | |
| IfAnd [IfaceBooleanFormula] | |
| IfOr [IfaceBooleanFormula] | |
| IfParens IfaceBooleanFormula |
Instances
| NFData IfaceBooleanFormula Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceBooleanFormula -> () Source # | |
| Binary IfaceBooleanFormula Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceBooleanFormula -> IO () Source # put :: BinHandle -> IfaceBooleanFormula -> IO (Bin IfaceBooleanFormula) Source # | |
This corresponds to an HsImplBang; that is, the final implementation decision about the data constructor arg
Constructors
| IfNoBang | |
| IfStrict | |
| IfUnpack | |
| IfUnpackCo IfaceCoercion |
data IfaceSrcBang Source #
This corresponds to HsSrcBang
Constructors
| IfSrcBang SrcUnpackedness SrcStrictness |
Instances
| NFData IfaceSrcBang Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceSrcBang -> () Source # | |
| Binary IfaceSrcBang Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceSrcBang -> IO () Source # put :: BinHandle -> IfaceSrcBang -> IO (Bin IfaceSrcBang) Source # | |
data SrcUnpackedness Source #
Source Unpackedness
What unpackedness the user requested
Constructors
| SrcUnpack | {-# UNPACK #-} specified |
| SrcNoUnpack | {-# NOUNPACK #-} specified |
| NoSrcUnpack | no unpack pragma |
Instances
data SrcStrictness Source #
Source Strictness
What strictness annotation the user wrote
Constructors
| SrcLazy | Lazy, ie |
| SrcStrict | Strict, ie |
| NoSrcStrict | no strictness annotation |
Instances
data IfaceAxBranch Source #
Constructors
| IfaceAxBranch | |
Fields
| |
Instances
| NFData IfaceAxBranch Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceAxBranch -> () Source # | |
| Binary IfaceAxBranch Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceAxBranch -> IO () Source # put :: BinHandle -> IfaceAxBranch -> IO (Bin IfaceAxBranch) Source # | |
data IfaceTyConParent Source #
Constructors
| IfNoParent | |
| IfDataInstance IfExtName IfaceTyCon IfaceAppArgs |
Instances
| NFData IfaceTyConParent Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceTyConParent -> () Source # | |
| Binary IfaceTyConParent Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceTyConParent -> IO () Source # put :: BinHandle -> IfaceTyConParent -> IO (Bin IfaceTyConParent) Source # | |
| Outputable IfaceTyConParent Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceTyConParent -> SDoc Source # | |
data IfaceCompleteMatch Source #
Constructors
| IfaceCompleteMatch [IfExtName] (Maybe IfaceTyCon) |
Instances
| NFData IfaceCompleteMatch Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceCompleteMatch -> () Source # | |
| Binary IfaceCompleteMatch Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceCompleteMatch -> IO () Source # put :: BinHandle -> IfaceCompleteMatch -> IO (Bin IfaceCompleteMatch) Source # | |
| Outputable IfaceCompleteMatch Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceCompleteMatch -> SDoc Source # | |
data IfaceLFInfo Source #
Iface type for LambdaFormInfo. Fields not relevant for imported Ids are omitted in this type.
Constructors
| IfLFReEntrant !RepArity | |
| IfLFThunk !Bool !Bool | |
| IfLFCon !Name | |
| IfLFUnknown !Bool | |
| IfLFUnlifted |
Instances
| Binary IfaceLFInfo Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceLFInfo -> IO () Source # put :: BinHandle -> IfaceLFInfo -> IO (Bin IfaceLFInfo) Source # | |
| Outputable IfaceLFInfo Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceLFInfo -> SDoc Source # | |
data IfaceTopBndrInfo Source #
Instances
| NFData IfaceTopBndrInfo Source # | |
Defined in GHC.Iface.Syntax Methods rnf :: IfaceTopBndrInfo -> () Source # | |
| Binary IfaceTopBndrInfo Source # | |
Defined in GHC.Iface.Syntax Methods put_ :: BinHandle -> IfaceTopBndrInfo -> IO () Source # put :: BinHandle -> IfaceTopBndrInfo -> IO (Bin IfaceTopBndrInfo) Source # | |
| Outputable IfaceTopBndrInfo Source # | |
Defined in GHC.Iface.Syntax Methods ppr :: IfaceTopBndrInfo -> SDoc Source # | |
Binding names
type IfaceTopBndr = Name Source #
putIfaceTopBndr :: BinHandle -> IfaceTopBndr -> IO () Source #
ifaceDeclImplicitBndrs :: IfaceDecl -> [OccName] Source #
ifaceDeclFingerprints :: Fingerprint -> IfaceDecl -> [(OccName, Fingerprint)] Source #
freeNamesIfDecl :: IfaceDecl -> NameSet Source #
freeNamesIfRule :: IfaceRule -> NameSet Source #
pprIfaceExpr :: (SDoc -> SDoc) -> IfaceExpr -> SDoc Source #
Pretty Print an IfaceExpr
The first argument should be a function that adds parens in context that need an atomic value (e.g. function args)
Constructors
| ShowSub | |
Fields | |
data ShowHowMuch Source #
Constructors
| ShowHeader AltPpr | Header information only, not rhs |
| ShowSome [OccName] AltPpr | Show only some sub-components. Specifically,
|
| ShowIface | Everything including GHC-internal information (used in --show-iface) |
Instances
| Outputable ShowHowMuch Source # | |
Defined in GHC.Iface.Type Methods ppr :: ShowHowMuch -> SDoc Source # | |