Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
Instances
data IfaceFamTyConFlav Source #
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 rnf :: IfaceFamTyConFlav -> () Source # | |
Binary IfaceFamTyConFlav # | |
data IfaceClassOp Source #
Instances
NFData IfaceClassOp # | |
Defined in IfaceSyn rnf :: IfaceClassOp -> () Source # | |
Outputable IfaceClassOp # | |
Binary IfaceClassOp # | |
HasOccName IfaceClassOp # | |
NamedThing IfaceClassOp # | |
Defined in IfaceSyn getOccName :: IfaceClassOp -> OccName Source # getName :: IfaceClassOp -> Name Source # |
data IfaceConDecl Source #
IfCon | |
|
Instances
NFData IfaceConDecl # | |
Defined in IfaceSyn rnf :: IfaceConDecl -> () Source # | |
Binary IfaceConDecl # | |
HasOccName IfaceConDecl # | |
NamedThing IfaceConDecl # | |
Defined in IfaceSyn getOccName :: IfaceConDecl -> OccName Source # getName :: IfaceConDecl -> Name Source # |
data IfaceConDecls Source #
Instances
NFData IfaceConDecls # | |
Defined in IfaceSyn rnf :: IfaceConDecls -> () Source # | |
Binary IfaceConDecls # | |
type IfaceEqSpec = [(IfLclName, IfaceType)] Source #
data IfaceLetBndr Source #
Instances
NFData IfaceLetBndr # | |
Defined in IfaceSyn rnf :: IfaceLetBndr -> () Source # | |
Binary IfaceLetBndr # | |
data IfaceJoinInfo Source #
Instances
NFData IfaceJoinInfo # | |
Defined in IfaceSyn rnf :: IfaceJoinInfo -> () Source # | |
Outputable IfaceJoinInfo # | |
Binary IfaceJoinInfo # | |
data IfaceBinding Source #
Instances
NFData IfaceBinding # | |
Defined in IfaceSyn rnf :: IfaceBinding -> () Source # | |
Binary IfaceBinding # | |
data IfaceConAlt Source #
Instances
NFData IfaceConAlt # | |
Defined in IfaceSyn rnf :: IfaceConAlt -> () Source # | |
Outputable IfaceConAlt # | |
Binary IfaceConAlt # | |
data IfaceIdInfo Source #
Instances
NFData IfaceIdInfo # | |
Defined in IfaceSyn rnf :: IfaceIdInfo -> () Source # | |
Outputable IfaceIdInfo # | |
Binary IfaceIdInfo # | |
data IfaceIdDetails Source #
Instances
NFData IfaceIdDetails # | |
Defined in IfaceSyn rnf :: IfaceIdDetails -> () Source # | |
Outputable IfaceIdDetails # | |
Binary IfaceIdDetails # | |
data IfaceUnfolding Source #
IfCoreUnfold Bool IfaceExpr | |
IfCompulsory IfaceExpr | |
IfInlineRule Arity Bool Bool IfaceExpr | |
IfDFunUnfold [IfaceBndr] [IfaceExpr] |
Instances
NFData IfaceUnfolding # | |
Defined in IfaceSyn rnf :: IfaceUnfolding -> () Source # | |
Outputable IfaceUnfolding # | |
Binary IfaceUnfolding # | |
data IfaceInfoItem Source #
HsArity Arity | |
HsStrictness StrictSig | |
HsInline InlinePragma | |
HsUnfold Bool IfaceUnfolding | |
HsNoCafRefs | |
HsLevity |
Instances
NFData IfaceInfoItem # | |
Defined in IfaceSyn rnf :: IfaceInfoItem -> () Source # | |
Outputable IfaceInfoItem # | |
Binary IfaceInfoItem # | |
IfaceRule | |
|
data IfaceAnnotation Source #
Instances
NFData IfaceAnnotation # | |
Defined in IfaceSyn rnf :: IfaceAnnotation -> () Source # | |
Outputable IfaceAnnotation # | |
Binary IfaceAnnotation # | |
type IfaceAnnTarget = AnnTarget OccName Source #
data IfaceClsInst Source #
IfaceClsInst | |
|
Instances
NFData IfaceClsInst # | |
Defined in IfaceSyn rnf :: IfaceClsInst -> () Source # | |
Outputable IfaceClsInst # | |
Binary IfaceClsInst # | |
data IfaceFamInst Source #
Instances
NFData IfaceFamInst # | |
Defined in IfaceSyn rnf :: IfaceFamInst -> () Source # | |
Outputable IfaceFamInst # | |
Binary IfaceFamInst # | |
data IfaceTickish Source #
Instances
NFData IfaceTickish # | |
Defined in IfaceSyn rnf :: IfaceTickish -> () Source # | |
Binary IfaceTickish # | |
data IfaceClassBody Source #
IfAbstractClass | |
IfConcreteClass | |
|
Instances
NFData IfaceClassBody # | |
Defined in IfaceSyn rnf :: IfaceClassBody -> () Source # |
This corresponds to an HsImplBang; that is, the final implementation decision about the data constructor arg
data IfaceSrcBang Source #
This corresponds to HsSrcBang
Instances
NFData IfaceSrcBang # | |
Defined in IfaceSyn rnf :: IfaceSrcBang -> () Source # | |
Binary IfaceSrcBang # | |
data SrcUnpackedness Source #
Source Unpackedness
What unpackedness the user requested
SrcUnpack | {-# UNPACK #-} specified |
SrcNoUnpack | {-# NOUNPACK #-} specified |
NoSrcUnpack | no unpack pragma |
Instances
data SrcStrictness Source #
Source Strictness
What strictness annotation the user wrote
SrcLazy | Lazy, ie '~' |
SrcStrict | Strict, ie |
NoSrcStrict | no strictness annotation |
Instances
Eq SrcStrictness # | |
Defined in DataCon (==) :: SrcStrictness -> SrcStrictness -> Bool # (/=) :: SrcStrictness -> SrcStrictness -> Bool # | |
Data SrcStrictness # | |
Defined in DataCon gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SrcStrictness -> c SrcStrictness Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SrcStrictness Source # toConstr :: SrcStrictness -> Constr Source # dataTypeOf :: SrcStrictness -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SrcStrictness) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SrcStrictness) Source # gmapT :: (forall b. Data b => b -> b) -> SrcStrictness -> SrcStrictness Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SrcStrictness -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SrcStrictness -> r Source # gmapQ :: (forall d. Data d => d -> u) -> SrcStrictness -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> SrcStrictness -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> SrcStrictness -> m SrcStrictness Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SrcStrictness -> m SrcStrictness Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SrcStrictness -> m SrcStrictness Source # | |
Outputable SrcStrictness # | |
Binary SrcStrictness # | |
data IfaceAxBranch Source #
IfaceAxBranch | |
|
Instances
NFData IfaceAxBranch # | |
Defined in IfaceSyn rnf :: IfaceAxBranch -> () Source # | |
Binary IfaceAxBranch # | |
data IfaceTyConParent Source #
Instances
NFData IfaceTyConParent # | |
Defined in IfaceSyn rnf :: IfaceTyConParent -> () Source # | |
Outputable IfaceTyConParent # | |
Binary IfaceTyConParent # | |
data IfaceCompleteMatch Source #
Instances
NFData IfaceCompleteMatch # | |
Defined in IfaceSyn rnf :: IfaceCompleteMatch -> () Source # | |
Outputable IfaceCompleteMatch # | |
Binary IfaceCompleteMatch # | |
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 IfaceExpre
The first argument should be a function that adds parens in context that need an atomic value (e.g. function args)
data ShowHowMuch Source #
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) |