Safe Haskell | None |
---|---|
Language | Haskell2010 |
IfaceSyn
Contents
Synopsis
- module IfaceType
- 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 :: [IfaceForAllBndr]
- ifPatExBndrs :: [IfaceForAllBndr]
- 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 {}
- 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 IfaceExpr
- | IfaceCast IfaceExpr IfaceCoercion
- | IfaceLit Literal
- | IfaceFCall ForeignCall IfaceType
- | IfaceTick IfaceTickish IfaceExpr
- type IfaceAlt = (IfaceConAlt, [IfLclName], IfaceExpr)
- data IfaceLetBndr = IfLetBndr IfLclName IfaceType IfaceIdInfo IfaceJoinInfo
- data IfaceJoinInfo
- data IfaceBinding
- data IfaceConAlt
- data IfaceIdInfo
- = NoInfo
- | HasInfo [IfaceInfoItem]
- data IfaceIdDetails
- data IfaceUnfolding
- data IfaceInfoItem
- data IfaceRule = IfaceRule {}
- data IfaceAnnotation = IfaceAnnotation {}
- type IfaceAnnTarget = AnnTarget OccName
- data IfaceClsInst = IfaceClsInst {}
- data IfaceFamInst = IfaceFamInst {}
- data IfaceTickish
- data IfaceClassBody
- = IfAbstractClass
- | IfConcreteClass {
- ifClassCtxt :: IfaceContext
- ifATs :: [IfaceAT]
- ifSigs :: [IfaceClassOp]
- ifMinDef :: BooleanFormula IfLclName
- 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] IfExtName
- type IfaceTopBndr = Name
- putIfaceTopBndr :: BinHandle -> IfaceTopBndr -> IO ()
- getIfaceTopBndr :: BinHandle -> IO IfaceTopBndr
- ifaceDeclImplicitBndrs :: IfaceDecl -> [OccName]
- visibleIfConDecls :: IfaceConDecls -> [IfaceConDecl]
- ifaceDeclFingerprints :: Fingerprint -> IfaceDecl -> [(OccName, Fingerprint)]
- freeNamesIfDecl :: IfaceDecl -> NameSet
- freeNamesIfRule :: IfaceRule -> NameSet
- freeNamesIfFamInst :: IfaceFamInst -> 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 IfaceType
Constructors
Instances
data IfaceFamTyConFlav #
Constructors
IfaceDataFamilyTyCon | |
IfaceOpenSynFamilyTyCon | |
IfaceClosedSynFamilyTyCon (Maybe (IfExtName, [IfaceAxBranch])) | Name of associated axiom and branches for pretty printing purposes,
or |
IfaceAbstractClosedSynFamilyTyCon | |
IfaceBuiltInSynFamTyCon |
Instances
NFData IfaceFamTyConFlav # | |
Defined in IfaceSyn Methods rnf :: IfaceFamTyConFlav -> () Source # | |
Binary IfaceFamTyConFlav # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceFamTyConFlav -> IO () # put :: BinHandle -> IfaceFamTyConFlav -> IO (Bin IfaceFamTyConFlav) # get :: BinHandle -> IO IfaceFamTyConFlav # |
data IfaceClassOp #
Constructors
IfaceClassOp IfaceTopBndr IfaceType (Maybe (DefMethSpec IfaceType)) |
Instances
NFData IfaceClassOp # | |
Defined in IfaceSyn Methods rnf :: IfaceClassOp -> () Source # | |
Outputable IfaceClassOp # | |
Defined in IfaceSyn | |
Binary IfaceClassOp # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceClassOp -> IO () # put :: BinHandle -> IfaceClassOp -> IO (Bin IfaceClassOp) # get :: BinHandle -> IO IfaceClassOp # | |
HasOccName IfaceClassOp # | |
Defined in IfaceSyn Methods occName :: IfaceClassOp -> OccName # | |
NamedThing IfaceClassOp # | |
Defined in IfaceSyn |
data IfaceConDecl #
Constructors
IfCon | |
Fields
|
Instances
NFData IfaceConDecl # | |
Defined in IfaceSyn Methods rnf :: IfaceConDecl -> () Source # | |
Binary IfaceConDecl # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceConDecl -> IO () # put :: BinHandle -> IfaceConDecl -> IO (Bin IfaceConDecl) # get :: BinHandle -> IO IfaceConDecl # | |
HasOccName IfaceConDecl # | |
Defined in IfaceSyn Methods occName :: IfaceConDecl -> OccName # | |
NamedThing IfaceConDecl # | |
Defined in IfaceSyn |
data IfaceConDecls #
Constructors
IfAbstractTyCon | |
IfDataTyCon [IfaceConDecl] | |
IfNewTyCon IfaceConDecl |
Instances
NFData IfaceConDecls # | |
Defined in IfaceSyn Methods rnf :: IfaceConDecls -> () Source # | |
Binary IfaceConDecls # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceConDecls -> IO () # put :: BinHandle -> IfaceConDecls -> IO (Bin IfaceConDecls) # get :: BinHandle -> IO IfaceConDecls # |
type IfaceEqSpec = [(IfLclName, IfaceType)] #
Constructors
type IfaceAlt = (IfaceConAlt, [IfLclName], IfaceExpr) #
data IfaceLetBndr #
Constructors
IfLetBndr IfLclName IfaceType IfaceIdInfo IfaceJoinInfo |
Instances
NFData IfaceLetBndr # | |
Defined in IfaceSyn Methods rnf :: IfaceLetBndr -> () Source # | |
Binary IfaceLetBndr # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceLetBndr -> IO () # put :: BinHandle -> IfaceLetBndr -> IO (Bin IfaceLetBndr) # get :: BinHandle -> IO IfaceLetBndr # |
data IfaceJoinInfo #
Constructors
IfaceNotJoinPoint | |
IfaceJoinPoint JoinArity |
Instances
NFData IfaceJoinInfo # | |
Defined in IfaceSyn Methods rnf :: IfaceJoinInfo -> () Source # | |
Outputable IfaceJoinInfo # | |
Defined in IfaceSyn | |
Binary IfaceJoinInfo # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceJoinInfo -> IO () # put :: BinHandle -> IfaceJoinInfo -> IO (Bin IfaceJoinInfo) # get :: BinHandle -> IO IfaceJoinInfo # |
data IfaceBinding #
Constructors
IfaceNonRec IfaceLetBndr IfaceExpr | |
IfaceRec [(IfaceLetBndr, IfaceExpr)] |
Instances
NFData IfaceBinding # | |
Defined in IfaceSyn Methods rnf :: IfaceBinding -> () Source # | |
Binary IfaceBinding # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceBinding -> IO () # put :: BinHandle -> IfaceBinding -> IO (Bin IfaceBinding) # get :: BinHandle -> IO IfaceBinding # |
data IfaceConAlt #
Constructors
IfaceDefault | |
IfaceDataAlt IfExtName | |
IfaceLitAlt Literal |
Instances
NFData IfaceConAlt # | |
Defined in IfaceSyn Methods rnf :: IfaceConAlt -> () Source # | |
Outputable IfaceConAlt # | |
Defined in IfaceSyn | |
Binary IfaceConAlt # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceConAlt -> IO () # put :: BinHandle -> IfaceConAlt -> IO (Bin IfaceConAlt) # get :: BinHandle -> IO IfaceConAlt # |
data IfaceIdInfo #
Constructors
NoInfo | |
HasInfo [IfaceInfoItem] |
Instances
NFData IfaceIdInfo # | |
Defined in IfaceSyn Methods rnf :: IfaceIdInfo -> () Source # | |
Outputable IfaceIdInfo # | |
Defined in IfaceSyn | |
Binary IfaceIdInfo # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceIdInfo -> IO () # put :: BinHandle -> IfaceIdInfo -> IO (Bin IfaceIdInfo) # get :: BinHandle -> IO IfaceIdInfo # |
data IfaceIdDetails #
Constructors
IfVanillaId | |
IfRecSelId (Either IfaceTyCon IfaceDecl) Bool | |
IfDFunId |
Instances
NFData IfaceIdDetails # | |
Defined in IfaceSyn Methods rnf :: IfaceIdDetails -> () Source # | |
Outputable IfaceIdDetails # | |
Defined in IfaceSyn | |
Binary IfaceIdDetails # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceIdDetails -> IO () # put :: BinHandle -> IfaceIdDetails -> IO (Bin IfaceIdDetails) # get :: BinHandle -> IO IfaceIdDetails # |
data IfaceUnfolding #
Constructors
IfCoreUnfold Bool IfaceExpr | |
IfCompulsory IfaceExpr | |
IfInlineRule Arity Bool Bool IfaceExpr | |
IfDFunUnfold [IfaceBndr] [IfaceExpr] |
Instances
NFData IfaceUnfolding # | |
Defined in IfaceSyn Methods rnf :: IfaceUnfolding -> () Source # | |
Outputable IfaceUnfolding # | |
Defined in IfaceSyn | |
Binary IfaceUnfolding # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceUnfolding -> IO () # put :: BinHandle -> IfaceUnfolding -> IO (Bin IfaceUnfolding) # get :: BinHandle -> IO IfaceUnfolding # |
data IfaceInfoItem #
Constructors
HsArity Arity | |
HsStrictness StrictSig | |
HsInline InlinePragma | |
HsUnfold Bool IfaceUnfolding | |
HsNoCafRefs | |
HsLevity |
Instances
NFData IfaceInfoItem # | |
Defined in IfaceSyn Methods rnf :: IfaceInfoItem -> () Source # | |
Outputable IfaceInfoItem # | |
Defined in IfaceSyn | |
Binary IfaceInfoItem # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceInfoItem -> IO () # put :: BinHandle -> IfaceInfoItem -> IO (Bin IfaceInfoItem) # get :: BinHandle -> IO IfaceInfoItem # |
Constructors
IfaceRule | |
Fields
|
data IfaceAnnotation #
Constructors
IfaceAnnotation | |
Fields |
Instances
NFData IfaceAnnotation # | |
Defined in IfaceSyn Methods rnf :: IfaceAnnotation -> () Source # | |
Outputable IfaceAnnotation # | |
Defined in IfaceSyn | |
Binary IfaceAnnotation # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceAnnotation -> IO () # put :: BinHandle -> IfaceAnnotation -> IO (Bin IfaceAnnotation) # get :: BinHandle -> IO IfaceAnnotation # |
type IfaceAnnTarget = AnnTarget OccName #
data IfaceClsInst #
Constructors
IfaceClsInst | |
Fields
|
Instances
NFData IfaceClsInst # | |
Defined in IfaceSyn Methods rnf :: IfaceClsInst -> () Source # | |
Outputable IfaceClsInst # | |
Defined in IfaceSyn | |
Binary IfaceClsInst # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceClsInst -> IO () # put :: BinHandle -> IfaceClsInst -> IO (Bin IfaceClsInst) # get :: BinHandle -> IO IfaceClsInst # |
data IfaceFamInst #
Constructors
IfaceFamInst | |
Fields |
Instances
NFData IfaceFamInst # | |
Defined in IfaceSyn Methods rnf :: IfaceFamInst -> () Source # | |
Outputable IfaceFamInst # | |
Defined in IfaceSyn | |
Binary IfaceFamInst # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceFamInst -> IO () # put :: BinHandle -> IfaceFamInst -> IO (Bin IfaceFamInst) # get :: BinHandle -> IO IfaceFamInst # |
data IfaceTickish #
Constructors
IfaceHpcTick Module Int | |
IfaceSCC CostCentre Bool Bool | |
IfaceSource RealSrcSpan String |
Instances
NFData IfaceTickish # | |
Defined in IfaceSyn Methods rnf :: IfaceTickish -> () Source # | |
Binary IfaceTickish # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceTickish -> IO () # put :: BinHandle -> IfaceTickish -> IO (Bin IfaceTickish) # get :: BinHandle -> IO IfaceTickish # |
data IfaceClassBody #
Constructors
IfAbstractClass | |
IfConcreteClass | |
Fields
|
Instances
NFData IfaceClassBody # | |
Defined in IfaceSyn Methods rnf :: IfaceClassBody -> () 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 #
This corresponds to HsSrcBang
Constructors
IfSrcBang SrcUnpackedness SrcStrictness |
Instances
NFData IfaceSrcBang # | |
Defined in IfaceSyn Methods rnf :: IfaceSrcBang -> () Source # | |
Binary IfaceSrcBang # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceSrcBang -> IO () # put :: BinHandle -> IfaceSrcBang -> IO (Bin IfaceSrcBang) # get :: BinHandle -> IO IfaceSrcBang # |
data SrcUnpackedness #
Source Unpackedness
What unpackedness the user requested
Constructors
SrcUnpack | |
SrcNoUnpack | |
NoSrcUnpack | no unpack pragma |
Instances
data SrcStrictness #
Source Strictness
What strictness annotation the user wrote
Constructors
SrcLazy | Lazy, ie '~' |
SrcStrict | Strict, ie |
NoSrcStrict | no strictness annotation |
Instances
data IfaceAxBranch #
Constructors
IfaceAxBranch | |
Fields
|
Instances
NFData IfaceAxBranch # | |
Defined in IfaceSyn Methods rnf :: IfaceAxBranch -> () Source # | |
Binary IfaceAxBranch # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceAxBranch -> IO () # put :: BinHandle -> IfaceAxBranch -> IO (Bin IfaceAxBranch) # get :: BinHandle -> IO IfaceAxBranch # |
data IfaceTyConParent #
Constructors
IfNoParent | |
IfDataInstance IfExtName IfaceTyCon IfaceAppArgs |
Instances
NFData IfaceTyConParent # | |
Defined in IfaceSyn Methods rnf :: IfaceTyConParent -> () Source # | |
Outputable IfaceTyConParent # | |
Defined in IfaceSyn | |
Binary IfaceTyConParent # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceTyConParent -> IO () # put :: BinHandle -> IfaceTyConParent -> IO (Bin IfaceTyConParent) # get :: BinHandle -> IO IfaceTyConParent # |
data IfaceCompleteMatch #
Constructors
IfaceCompleteMatch [IfExtName] IfExtName |
Instances
NFData IfaceCompleteMatch # | |
Defined in IfaceSyn Methods rnf :: IfaceCompleteMatch -> () Source # | |
Outputable IfaceCompleteMatch # | |
Defined in IfaceSyn | |
Binary IfaceCompleteMatch # | |
Defined in IfaceSyn Methods put_ :: BinHandle -> IfaceCompleteMatch -> IO () # put :: BinHandle -> IfaceCompleteMatch -> IO (Bin IfaceCompleteMatch) # get :: BinHandle -> IO IfaceCompleteMatch # |
Binding names
type IfaceTopBndr = Name #
putIfaceTopBndr :: BinHandle -> IfaceTopBndr -> IO () #
getIfaceTopBndr :: BinHandle -> IO IfaceTopBndr #
ifaceDeclImplicitBndrs :: IfaceDecl -> [OccName] #
visibleIfConDecls :: IfaceConDecls -> [IfaceConDecl] #
ifaceDeclFingerprints :: Fingerprint -> IfaceDecl -> [(OccName, Fingerprint)] #
freeNamesIfDecl :: IfaceDecl -> NameSet #
freeNamesIfRule :: IfaceRule -> NameSet #
pprIfaceExpr :: (SDoc -> SDoc) -> IfaceExpr -> SDoc #
Pretty Print an IfaceExpre
The first argument should be a function that adds parens in context that need an atomic value (e.g. function args)
pprIfaceDecl :: ShowSub -> IfaceDecl -> SDoc #
Constructors
ShowSub | |
Fields |
data ShowHowMuch #
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 # | |
Defined in IfaceSyn |
showToIface :: ShowSub #
showToHeader :: ShowSub #