ghc-lib-parser-8.10.7.20210828: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

IfaceSyn

Synopsis

Documentation

module IfaceType

data IfaceDecl Source #

Instances

Instances details
NFData IfaceDecl Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceDecl -> () #

Outputable IfaceDecl Source # 
Instance details

Defined in IfaceSyn

Binary IfaceDecl Source # 
Instance details

Defined in IfaceSyn

HasOccName IfaceDecl Source # 
Instance details

Defined in IfaceSyn

NamedThing IfaceDecl Source # 
Instance details

Defined in IfaceSyn

data IfaceFamTyConFlav Source #

Constructors

IfaceDataFamilyTyCon 
IfaceOpenSynFamilyTyCon 
IfaceClosedSynFamilyTyCon (Maybe (IfExtName, [IfaceAxBranch]))

Name of associated axiom and branches for pretty printing purposes, or Nothing for an empty closed family without an axiom See Note [Pretty printing via IfaceSyn] in PprTyThing

IfaceAbstractClosedSynFamilyTyCon 
IfaceBuiltInSynFamTyCon 

Instances

Instances details
NFData IfaceFamTyConFlav Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceFamTyConFlav -> () #

Binary IfaceFamTyConFlav Source # 
Instance details

Defined in IfaceSyn

data IfaceClassOp Source #

Instances

Instances details
NFData IfaceClassOp Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceClassOp -> () #

Outputable IfaceClassOp Source # 
Instance details

Defined in IfaceSyn

Binary IfaceClassOp Source # 
Instance details

Defined in IfaceSyn

HasOccName IfaceClassOp Source # 
Instance details

Defined in IfaceSyn

NamedThing IfaceClassOp Source # 
Instance details

Defined in IfaceSyn

data IfaceAT Source #

Instances

Instances details
NFData IfaceAT Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceAT -> () #

Outputable IfaceAT Source # 
Instance details

Defined in IfaceSyn

Binary IfaceAT Source # 
Instance details

Defined in IfaceSyn

data IfaceConDecls Source #

Instances

Instances details
NFData IfaceConDecls Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceConDecls -> () #

Binary IfaceConDecls Source # 
Instance details

Defined in IfaceSyn

data IfaceLetBndr Source #

Instances

Instances details
NFData IfaceLetBndr Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceLetBndr -> () #

Binary IfaceLetBndr Source # 
Instance details

Defined in IfaceSyn

data IfaceJoinInfo Source #

Instances

Instances details
NFData IfaceJoinInfo Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceJoinInfo -> () #

Outputable IfaceJoinInfo Source # 
Instance details

Defined in IfaceSyn

Binary IfaceJoinInfo Source # 
Instance details

Defined in IfaceSyn

data IfaceBinding Source #

Instances

Instances details
NFData IfaceBinding Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceBinding -> () #

Binary IfaceBinding Source # 
Instance details

Defined in IfaceSyn

data IfaceConAlt Source #

Instances

Instances details
NFData IfaceConAlt Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceConAlt -> () #

Outputable IfaceConAlt Source # 
Instance details

Defined in IfaceSyn

Binary IfaceConAlt Source # 
Instance details

Defined in IfaceSyn

data IfaceIdInfo Source #

Constructors

NoInfo 
HasInfo [IfaceInfoItem] 

Instances

Instances details
NFData IfaceIdInfo Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceIdInfo -> () #

Outputable IfaceIdInfo Source # 
Instance details

Defined in IfaceSyn

Binary IfaceIdInfo Source # 
Instance details

Defined in IfaceSyn

data IfaceRule Source #

Instances

Instances details
NFData IfaceRule Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceRule -> () #

Outputable IfaceRule Source # 
Instance details

Defined in IfaceSyn

Binary IfaceRule Source # 
Instance details

Defined in IfaceSyn

data IfaceClsInst Source #

Instances

Instances details
NFData IfaceClsInst Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceClsInst -> () #

Outputable IfaceClsInst Source # 
Instance details

Defined in IfaceSyn

Binary IfaceClsInst Source # 
Instance details

Defined in IfaceSyn

data IfaceFamInst Source #

Instances

Instances details
NFData IfaceFamInst Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceFamInst -> () #

Outputable IfaceFamInst Source # 
Instance details

Defined in IfaceSyn

Binary IfaceFamInst Source # 
Instance details

Defined in IfaceSyn

data IfaceTickish Source #

Instances

Instances details
NFData IfaceTickish Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceTickish -> () #

Binary IfaceTickish Source # 
Instance details

Defined in IfaceSyn

data IfaceClassBody Source #

Instances

Instances details
NFData IfaceClassBody Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceClassBody -> () #

data IfaceBang Source #

This corresponds to an HsImplBang; that is, the final implementation decision about the data constructor arg

Instances

Instances details
NFData IfaceBang Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceBang -> () #

Binary IfaceBang Source # 
Instance details

Defined in IfaceSyn

data IfaceSrcBang Source #

This corresponds to HsSrcBang

Instances

Instances details
NFData IfaceSrcBang Source # 
Instance details

Defined in IfaceSyn

Methods

rnf :: IfaceSrcBang -> () #

Binary IfaceSrcBang Source # 
Instance details

Defined in IfaceSyn

data SrcUnpackedness Source #

Source Unpackedness

What unpackedness the user requested

Constructors

SrcUnpack

{--} specified

SrcNoUnpack

{--} specified

NoSrcUnpack

no unpack pragma

Instances

Instances details
Eq SrcUnpackedness Source # 
Instance details

Defined in DataCon

Data SrcUnpackedness Source # 
Instance details

Defined in DataCon

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SrcUnpackedness -> c SrcUnpackedness #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SrcUnpackedness #

toConstr :: SrcUnpackedness -> Constr #

dataTypeOf :: SrcUnpackedness -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SrcUnpackedness) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SrcUnpackedness) #

gmapT :: (forall b. Data b => b -> b) -> SrcUnpackedness -> SrcUnpackedness #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SrcUnpackedness -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SrcUnpackedness -> r #

gmapQ :: (forall d. Data d => d -> u) -> SrcUnpackedness -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SrcUnpackedness -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SrcUnpackedness -> m SrcUnpackedness #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SrcUnpackedness -> m SrcUnpackedness #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SrcUnpackedness -> m SrcUnpackedness #

Outputable SrcUnpackedness Source # 
Instance details

Defined in DataCon

Binary SrcUnpackedness Source # 
Instance details

Defined in DataCon

data SrcStrictness Source #

Source Strictness

What strictness annotation the user wrote

Constructors

SrcLazy

Lazy, ie '~'

SrcStrict

Strict, ie !

NoSrcStrict

no strictness annotation

Instances

Instances details
Eq SrcStrictness Source # 
Instance details

Defined in DataCon

Data SrcStrictness Source # 
Instance details

Defined in DataCon

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SrcStrictness -> c SrcStrictness #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SrcStrictness #

toConstr :: SrcStrictness -> Constr #

dataTypeOf :: SrcStrictness -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SrcStrictness) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SrcStrictness) #

gmapT :: (forall b. Data b => b -> b) -> SrcStrictness -> SrcStrictness #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SrcStrictness -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SrcStrictness -> r #

gmapQ :: (forall d. Data d => d -> u) -> SrcStrictness -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SrcStrictness -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SrcStrictness -> m SrcStrictness #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SrcStrictness -> m SrcStrictness #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SrcStrictness -> m SrcStrictness #

Outputable SrcStrictness Source # 
Instance details

Defined in DataCon

Binary SrcStrictness Source # 
Instance details

Defined in DataCon

Binding names

type IfaceTopBndr = Name Source #

A binding top-level Name in an interface file (e.g. the name of an IfaceDecl).

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)

newtype AltPpr Source #

Constructors

AltPpr (Maybe (OccName -> SDoc)) 

data ShowHowMuch Source #

Constructors

ShowHeader AltPpr

Header information only, not rhs

ShowSome [OccName] AltPpr

Show only some sub-components. Specifically,

@[
@] Print all sub-components.
(n:ns)
Print sub-component n with ShowSub = ns; elide other sub-components to ... May 14: the list is max 1 element long at the moment
ShowIface

Everything including GHC-internal information (used in --show-iface)

Instances

Instances details
Outputable ShowHowMuch Source # 
Instance details

Defined in IfaceSyn