Safe Haskell | None |
---|---|
Language | Haskell2010 |
- Toplevel declarations
- Class or type declarations
- Instance declarations
- Standalone deriving declarations
RULE
declarationsVECTORISE
declarationsdefault
declarations- Template haskell declaration splice
- Foreign function interface declarations
- Data-constructor declarations
- Document comments
- Deprecations
- Annotations
- Role annotations
- Injective type families
- Grouping
Abstract syntax of global declarations.
Definitions for: SynDecl
and ConDecl
, ClassDecl
,
InstDecl
, DefaultDecl
and ForeignDecl
.
- data HsDecl id
- = TyClD (TyClDecl id)
- | InstD (InstDecl id)
- | DerivD (DerivDecl id)
- | ValD (HsBind id)
- | SigD (Sig id)
- | DefD (DefaultDecl id)
- | ForD (ForeignDecl id)
- | WarningD (WarnDecls id)
- | AnnD (AnnDecl id)
- | RuleD (RuleDecls id)
- | VectD (VectDecl id)
- | SpliceD (SpliceDecl id)
- | DocD DocDecl
- | RoleAnnotD (RoleAnnotDecl id)
- type LHsDecl id = Located (HsDecl id)
- data HsDataDefn name = HsDataDefn {
- dd_ND :: NewOrData
- dd_ctxt :: LHsContext name
- dd_cType :: Maybe (Located CType)
- dd_kindSig :: Maybe (LHsKind name)
- dd_cons :: [LConDecl name]
- dd_derivs :: HsDeriving name
- type HsDeriving name = Located [LHsDerivingClause name]
- data HsDerivingClause name = HsDerivingClause {
- deriv_clause_strategy :: Maybe (Located DerivStrategy)
- deriv_clause_tys :: Located [LHsSigType name]
- type LHsDerivingClause name = Located (HsDerivingClause name)
- data TyClDecl name
- = FamDecl {
- tcdFam :: FamilyDecl name
- | SynDecl { }
- | DataDecl {
- tcdLName :: Located name
- tcdTyVars :: LHsQTyVars name
- tcdFixity :: LexicalFixity
- tcdDataDefn :: HsDataDefn name
- tcdDataCusk :: PostRn name Bool
- tcdFVs :: PostRn name NameSet
- | ClassDecl {
- tcdCtxt :: LHsContext name
- tcdLName :: Located name
- tcdTyVars :: LHsQTyVars name
- tcdFixity :: LexicalFixity
- tcdFDs :: [Located (FunDep (Located name))]
- tcdSigs :: [LSig name]
- tcdMeths :: LHsBinds name
- tcdATs :: [LFamilyDecl name]
- tcdATDefs :: [LTyFamDefltEqn name]
- tcdDocs :: [LDocDecl]
- tcdFVs :: PostRn name NameSet
- = FamDecl {
- type LTyClDecl name = Located (TyClDecl name)
- data TyClGroup name = TyClGroup {
- group_tyclds :: [LTyClDecl name]
- group_roles :: [LRoleAnnotDecl name]
- group_instds :: [LInstDecl name]
- mkTyClGroup :: [LTyClDecl name] -> [LInstDecl name] -> TyClGroup name
- emptyTyClGroup :: TyClGroup name
- tyClGroupTyClDecls :: [TyClGroup name] -> [LTyClDecl name]
- tyClGroupInstDecls :: [TyClGroup name] -> [LInstDecl name]
- tyClGroupRoleDecls :: [TyClGroup name] -> [LRoleAnnotDecl name]
- isClassDecl :: TyClDecl name -> Bool
- isDataDecl :: TyClDecl name -> Bool
- isSynDecl :: TyClDecl name -> Bool
- tcdName :: TyClDecl name -> name
- isFamilyDecl :: TyClDecl name -> Bool
- isTypeFamilyDecl :: TyClDecl name -> Bool
- isDataFamilyDecl :: TyClDecl name -> Bool
- isOpenTypeFamilyInfo :: FamilyInfo name -> Bool
- isClosedTypeFamilyInfo :: FamilyInfo name -> Bool
- tyFamInstDeclName :: TyFamInstDecl name -> name
- tyFamInstDeclLName :: TyFamInstDecl name -> Located name
- countTyClDecls :: [TyClDecl name] -> (Int, Int, Int, Int, Int)
- pprTyClDeclFlavour :: TyClDecl a -> SDoc
- tyClDeclLName :: TyClDecl name -> Located name
- tyClDeclTyVars :: TyClDecl name -> LHsQTyVars name
- hsDeclHasCusk :: TyClDecl Name -> Bool
- famDeclHasCusk :: Maybe Bool -> FamilyDecl name -> Bool
- data FamilyDecl name = FamilyDecl {
- fdInfo :: FamilyInfo name
- fdLName :: Located name
- fdTyVars :: LHsQTyVars name
- fdFixity :: LexicalFixity
- fdResultSig :: LFamilyResultSig name
- fdInjectivityAnn :: Maybe (LInjectivityAnn name)
- type LFamilyDecl name = Located (FamilyDecl name)
- data InstDecl name
- = ClsInstD {
- cid_inst :: ClsInstDecl name
- | DataFamInstD {
- dfid_inst :: DataFamInstDecl name
- | TyFamInstD {
- tfid_inst :: TyFamInstDecl name
- = ClsInstD {
- type LInstDecl name = Located (InstDecl name)
- data NewOrData
- data FamilyInfo name
- = DataFamily
- | OpenTypeFamily
- | ClosedTypeFamily (Maybe [LTyFamInstEqn name])
- data TyFamInstDecl name = TyFamInstDecl {
- tfid_eqn :: LTyFamInstEqn name
- tfid_fvs :: PostRn name NameSet
- type LTyFamInstDecl name = Located (TyFamInstDecl name)
- instDeclDataFamInsts :: [LInstDecl name] -> [DataFamInstDecl name]
- data DataFamInstDecl name = DataFamInstDecl {
- dfid_tycon :: Located name
- dfid_pats :: HsTyPats name
- dfid_fixity :: LexicalFixity
- dfid_defn :: HsDataDefn name
- dfid_fvs :: PostRn name NameSet
- type LDataFamInstDecl name = Located (DataFamInstDecl name)
- pprDataFamInstFlavour :: DataFamInstDecl name -> SDoc
- data TyFamEqn name pats = TyFamEqn {
- tfe_tycon :: Located name
- tfe_pats :: pats
- tfe_fixity :: LexicalFixity
- tfe_rhs :: LHsType name
- type TyFamInstEqn name = TyFamEqn name (HsTyPats name)
- type LTyFamInstEqn name = Located (TyFamInstEqn name)
- type TyFamDefltEqn name = TyFamEqn name (LHsQTyVars name)
- type LTyFamDefltEqn name = Located (TyFamDefltEqn name)
- type HsTyPats name = HsImplicitBndrs name [LHsType name]
- type LClsInstDecl name = Located (ClsInstDecl name)
- data ClsInstDecl name = ClsInstDecl {
- cid_poly_ty :: LHsSigType name
- cid_binds :: LHsBinds name
- cid_sigs :: [LSig name]
- cid_tyfam_insts :: [LTyFamInstDecl name]
- cid_datafam_insts :: [LDataFamInstDecl name]
- cid_overlap_mode :: Maybe (Located OverlapMode)
- data DerivDecl name = DerivDecl {
- deriv_type :: LHsSigType name
- deriv_strategy :: Maybe (Located DerivStrategy)
- deriv_overlap_mode :: Maybe (Located OverlapMode)
- type LDerivDecl name = Located (DerivDecl name)
- type LRuleDecls name = Located (RuleDecls name)
- data RuleDecls name = HsRules {
- rds_src :: SourceText
- rds_rules :: [LRuleDecl name]
- data RuleDecl name = HsRule (Located (SourceText, RuleName)) Activation [LRuleBndr name] (Located (HsExpr name)) (PostRn name NameSet) (Located (HsExpr name)) (PostRn name NameSet)
- type LRuleDecl name = Located (RuleDecl name)
- data RuleBndr name
- = RuleBndr (Located name)
- | RuleBndrSig (Located name) (LHsSigWcType name)
- type LRuleBndr name = Located (RuleBndr name)
- collectRuleBndrSigTys :: [RuleBndr name] -> [LHsSigWcType name]
- flattenRuleDecls :: [LRuleDecls name] -> [LRuleDecl name]
- pprFullRuleName :: Located (SourceText, RuleName) -> SDoc
- data VectDecl name
- = HsVect SourceText (Located name) (LHsExpr name)
- | HsNoVect SourceText (Located name)
- | HsVectTypeIn SourceText Bool (Located name) (Maybe (Located name))
- | HsVectTypeOut Bool TyCon (Maybe TyCon)
- | HsVectClassIn SourceText (Located name)
- | HsVectClassOut Class
- | HsVectInstIn (LHsSigType name)
- | HsVectInstOut ClsInst
- type LVectDecl name = Located (VectDecl name)
- lvectDeclName :: NamedThing name => LVectDecl name -> Name
- lvectInstDecl :: LVectDecl name -> Bool
- data DefaultDecl name = DefaultDecl [LHsType name]
- type LDefaultDecl name = Located (DefaultDecl name)
- data SpliceExplicitFlag
- data SpliceDecl id = SpliceDecl (Located (HsSplice id)) SpliceExplicitFlag
- type LSpliceDecl name = Located (SpliceDecl name)
- data ForeignDecl name
- = ForeignImport {
- fd_name :: Located name
- fd_sig_ty :: LHsSigType name
- fd_co :: PostTc name Coercion
- fd_fi :: ForeignImport
- | ForeignExport {
- fd_name :: Located name
- fd_sig_ty :: LHsSigType name
- fd_co :: PostTc name Coercion
- fd_fe :: ForeignExport
- = ForeignImport {
- type LForeignDecl name = Located (ForeignDecl name)
- data ForeignImport = CImport (Located CCallConv) (Located Safety) (Maybe Header) CImportSpec (Located SourceText)
- data ForeignExport = CExport (Located CExportSpec) (Located SourceText)
- noForeignImportCoercionYet :: PlaceHolder
- noForeignExportCoercionYet :: PlaceHolder
- data CImportSpec
- data ConDecl name
- = ConDeclGADT {
- con_names :: [Located name]
- con_type :: LHsSigType name
- con_doc :: Maybe LHsDocString
- | ConDeclH98 {
- con_name :: Located name
- con_qvars :: Maybe (LHsQTyVars name)
- con_cxt :: Maybe (LHsContext name)
- con_details :: HsConDeclDetails name
- con_doc :: Maybe LHsDocString
- = ConDeclGADT {
- type LConDecl name = Located (ConDecl name)
- type HsConDeclDetails name = HsConDetails (LBangType name) (Located [LConDeclField name])
- hsConDeclArgTys :: HsConDeclDetails name -> [LBangType name]
- getConNames :: ConDecl name -> [Located name]
- getConDetails :: ConDecl name -> HsConDeclDetails name
- gadtDeclDetails :: LHsSigType name -> (HsConDeclDetails name, LHsType name, LHsContext name, [LHsTyVarBndr name])
- data DocDecl
- type LDocDecl = Located DocDecl
- docDeclDoc :: DocDecl -> HsDocString
- data WarnDecl name = Warning [Located name] WarningTxt
- type LWarnDecl name = Located (WarnDecl name)
- data WarnDecls name = Warnings {
- wd_src :: SourceText
- wd_warnings :: [LWarnDecl name]
- type LWarnDecls name = Located (WarnDecls name)
- data AnnDecl name = HsAnnotation SourceText (AnnProvenance name) (Located (HsExpr name))
- type LAnnDecl name = Located (AnnDecl name)
- data AnnProvenance name
- = ValueAnnProvenance (Located name)
- | TypeAnnProvenance (Located name)
- | ModuleAnnProvenance
- annProvenanceName_maybe :: AnnProvenance name -> Maybe name
- data RoleAnnotDecl name = RoleAnnotDecl (Located name) [Located (Maybe Role)]
- type LRoleAnnotDecl name = Located (RoleAnnotDecl name)
- roleAnnotDeclName :: RoleAnnotDecl name -> name
- data FamilyResultSig name
- = NoSig
- | KindSig (LHsKind name)
- | TyVarSig (LHsTyVarBndr name)
- type LFamilyResultSig name = Located (FamilyResultSig name)
- data InjectivityAnn name = InjectivityAnn (Located name) [Located name]
- type LInjectivityAnn name = Located (InjectivityAnn name)
- resultVariableName :: FamilyResultSig a -> Maybe a
- data HsGroup id = HsGroup {
- hs_valds :: HsValBinds id
- hs_splcds :: [LSpliceDecl id]
- hs_tyclds :: [TyClGroup id]
- hs_derivds :: [LDerivDecl id]
- hs_fixds :: [LFixitySig id]
- hs_defds :: [LDefaultDecl id]
- hs_fords :: [LForeignDecl id]
- hs_warnds :: [LWarnDecls id]
- hs_annds :: [LAnnDecl id]
- hs_ruleds :: [LRuleDecls id]
- hs_vects :: [LVectDecl id]
- hs_docs :: [LDocDecl]
- emptyRdrGroup :: HsGroup a
- emptyRnGroup :: HsGroup a
- appendGroups :: HsGroup a -> HsGroup a -> HsGroup a
- hsGroupInstDecls :: HsGroup id -> [LInstDecl id]
Toplevel declarations
A Haskell Declaration
TyClD (TyClDecl id) | Type or Class Declaration |
InstD (InstDecl id) | Instance declaration |
DerivD (DerivDecl id) | Deriving declaration |
ValD (HsBind id) | Value declaration |
SigD (Sig id) | Signature declaration |
DefD (DefaultDecl id) | 'default' declaration |
ForD (ForeignDecl id) | Foreign declaration |
WarningD (WarnDecls id) | Warning declaration |
AnnD (AnnDecl id) | Annotation declaration |
RuleD (RuleDecls id) | Rule declaration |
VectD (VectDecl id) | Vectorise declaration |
SpliceD (SpliceDecl id) | Splice declaration (Includes quasi-quotes) |
DocD DocDecl | Documentation comment declaration |
RoleAnnotD (RoleAnnotDecl id) | Role annotation declaration |
DataId id => Data (HsDecl id) Source # | |
OutputableBndrId name => Outputable (HsDecl name) Source # | |
data HsDataDefn name Source #
Haskell Data type Definition
HsDataDefn | Declares a data type or newtype, giving its constructors
|
|
DataId id => Data (HsDataDefn id) Source # | |
OutputableBndrId name => Outputable (HsDataDefn name) Source # | |
type HsDeriving name Source #
= Located [LHsDerivingClause name] | The optional The list of |
Haskell Deriving clause
data HsDerivingClause name Source #
A single deriving
clause of a data declaration.
HsDerivingClause | |
|
DataId id => Data (HsDerivingClause id) Source # | |
OutputableBndrId name => Outputable (HsDerivingClause name) Source # | |
type LHsDerivingClause name = Located (HsDerivingClause name) Source #
Class or type declarations
A type or class declaration.
FamDecl | type/data family T :: *->* |
| |
SynDecl |
|
DataDecl |
|
| |
ClassDecl | |
|
DataId id => Data (TyClDecl id) Source # | |
OutputableBndrId name => Outputable (TyClDecl name) Source # | |
Type or Class Group
TyClGroup | |
|
DataId id => Data (TyClGroup id) Source # | |
OutputableBndrId name => Outputable (TyClGroup name) Source # | |
emptyTyClGroup :: TyClGroup name Source #
tyClGroupTyClDecls :: [TyClGroup name] -> [LTyClDecl name] Source #
tyClGroupInstDecls :: [TyClGroup name] -> [LInstDecl name] Source #
tyClGroupRoleDecls :: [TyClGroup name] -> [LRoleAnnotDecl name] Source #
isClassDecl :: TyClDecl name -> Bool Source #
type class
isFamilyDecl :: TyClDecl name -> Bool Source #
type/data family declaration
isTypeFamilyDecl :: TyClDecl name -> Bool Source #
type family declaration
isDataFamilyDecl :: TyClDecl name -> Bool Source #
data family declaration
isOpenTypeFamilyInfo :: FamilyInfo name -> Bool Source #
open type family info
isClosedTypeFamilyInfo :: FamilyInfo name -> Bool Source #
closed type family info
tyFamInstDeclName :: TyFamInstDecl name -> name Source #
tyFamInstDeclLName :: TyFamInstDecl name -> Located name Source #
pprTyClDeclFlavour :: TyClDecl a -> SDoc Source #
tyClDeclLName :: TyClDecl name -> Located name Source #
tyClDeclTyVars :: TyClDecl name -> LHsQTyVars name Source #
hsDeclHasCusk :: TyClDecl Name -> Bool Source #
Does this declaration have a complete, user-supplied kind signature? See Note [Complete user-supplied kind signatures]
:: Maybe Bool | if associated, does the enclosing class have a CUSK? |
-> FamilyDecl name | |
-> Bool |
Does this family declaration have a complete, user-supplied kind signature?
data FamilyDecl name Source #
type Family Declaration
FamilyDecl | |
|
DataId id => Data (FamilyDecl id) Source # | |
OutputableBndrId name => Outputable (FamilyDecl name) Source # | |
type LFamilyDecl name = Located (FamilyDecl name) Source #
Located type Family Declaration
Instance declarations
Instance Declaration
ClsInstD | |
| |
DataFamInstD | |
| |
TyFamInstD | |
|
DataId id => Data (InstDecl id) Source # | |
OutputableBndrId name => Outputable (InstDecl name) Source # | |
data FamilyInfo name Source #
DataFamily | |
OpenTypeFamily | |
ClosedTypeFamily (Maybe [LTyFamInstEqn name]) |
|
DataId name => Data (FamilyInfo name) Source # | |
Outputable (FamilyInfo name) Source # | |
data TyFamInstDecl name Source #
Type Family Instance Declaration
TyFamInstDecl | |
|
DataId name => Data (TyFamInstDecl name) Source # | |
OutputableBndrId name => Outputable (TyFamInstDecl name) Source # | |
type LTyFamInstDecl name = Located (TyFamInstDecl name) Source #
Located Type Family Instance Declaration
instDeclDataFamInsts :: [LInstDecl name] -> [DataFamInstDecl name] Source #
data DataFamInstDecl name Source #
Data Family Instance Declaration
DataFamInstDecl | |
|
DataId name => Data (DataFamInstDecl name) Source # | |
OutputableBndrId name => Outputable (DataFamInstDecl name) Source # | |
type LDataFamInstDecl name = Located (DataFamInstDecl name) Source #
Located Data Family Instance Declaration
pprDataFamInstFlavour :: DataFamInstDecl name -> SDoc Source #
data TyFamEqn name pats Source #
Type Family Equation
One equation in a type family instance declaration See Note [Type family instance declarations in HsSyn]
TyFamEqn | |
|
type TyFamInstEqn name = TyFamEqn name (HsTyPats name) Source #
Type Family Instance Equation
type LTyFamInstEqn name Source #
= Located (TyFamInstEqn name) | May have |
Located Type Family Instance Equation
type TyFamDefltEqn name = TyFamEqn name (LHsQTyVars name) Source #
Type Family Default Equation
type LTyFamDefltEqn name = Located (TyFamDefltEqn name) Source #
Located Type Family Default Equation
= HsImplicitBndrs name [LHsType name] | Type patterns (with kind and type bndrs) See Note [Family instance declaration binders] |
Haskell Type Patterns
type LClsInstDecl name = Located (ClsInstDecl name) Source #
Located Class Instance Declaration
data ClsInstDecl name Source #
Class Instance Declaration
ClsInstDecl | |
|
DataId id => Data (ClsInstDecl id) Source # | |
OutputableBndrId name => Outputable (ClsInstDecl name) Source # | |
Standalone deriving declarations
Deriving Declaration
DataId name => Data (DerivDecl name) Source # | |
OutputableBndrId name => Outputable (DerivDecl name) Source # | |
type LDerivDecl name = Located (DerivDecl name) Source #
Located Deriving Declaration
RULE
declarations
type LRuleDecls name = Located (RuleDecls name) Source #
Located Rule Declarations
Rule Declarations
HsRules | |
|
DataId name => Data (RuleDecls name) Source # | |
OutputableBndrId name => Outputable (RuleDecls name) Source # | |
Rule Declaration
HsRule (Located (SourceText, RuleName)) Activation [LRuleBndr name] (Located (HsExpr name)) (PostRn name NameSet) (Located (HsExpr name)) (PostRn name NameSet) |
DataId name => Data (RuleDecl name) Source # | |
OutputableBndrId name => Outputable (RuleDecl name) Source # | |
Rule Binder
RuleBndr (Located name) | |
RuleBndrSig (Located name) (LHsSigWcType name) |
DataId name => Data (RuleBndr name) Source # | |
OutputableBndrId name => Outputable (RuleBndr name) Source # | |
collectRuleBndrSigTys :: [RuleBndr name] -> [LHsSigWcType name] Source #
flattenRuleDecls :: [LRuleDecls name] -> [LRuleDecl name] Source #
pprFullRuleName :: Located (SourceText, RuleName) -> SDoc Source #
VECTORISE
declarations
Vectorise Declaration
HsVect SourceText (Located name) (LHsExpr name) | |
HsNoVect SourceText (Located name) | |
HsVectTypeIn SourceText Bool (Located name) (Maybe (Located name)) | |
HsVectTypeOut Bool TyCon (Maybe TyCon) | |
HsVectClassIn SourceText (Located name) | |
HsVectClassOut Class | |
HsVectInstIn (LHsSigType name) | |
HsVectInstOut ClsInst |
DataId name => Data (VectDecl name) Source # | |
OutputableBndrId name => Outputable (VectDecl name) Source # | |
lvectDeclName :: NamedThing name => LVectDecl name -> Name Source #
lvectInstDecl :: LVectDecl name -> Bool Source #
default
declarations
data DefaultDecl name Source #
Default Declaration
DefaultDecl [LHsType name] |
DataId name => Data (DefaultDecl name) Source # | |
OutputableBndrId name => Outputable (DefaultDecl name) Source # | |
type LDefaultDecl name = Located (DefaultDecl name) Source #
Located Default Declaration
Template haskell declaration splice
data SpliceExplicitFlag Source #
ExplicitSplice | = $(f x y) |
ImplicitSplice | = f x y, i.e. a naked top level expression |
data SpliceDecl id Source #
Splice Declaration
DataId id => Data (SpliceDecl id) Source # | |
OutputableBndrId name => Outputable (SpliceDecl name) Source # | |
type LSpliceDecl name = Located (SpliceDecl name) Source #
Located Splice Declaration
Foreign function interface declarations
data ForeignDecl name Source #
Foreign Declaration
ForeignImport | |
| |
ForeignExport | |
|
DataId name => Data (ForeignDecl name) Source # | |
OutputableBndrId name => Outputable (ForeignDecl name) Source # | |
type LForeignDecl name = Located (ForeignDecl name) Source #
Located Foreign Declaration
data ForeignImport Source #
data ForeignExport Source #
data CImportSpec Source #
Data-constructor declarations
data T b = forall a. Eq a => MkT a b MkT :: forall b a. Eq a => MkT a b data T b where MkT1 :: Int -> T Int data T = IntMkT
Int | MkT2 data T a where IntMkT
Int :: T Int
AnnKeywordId
s :AnnOpen
,AnnDotdot
,AnnCLose
,AnnEqual
,AnnVbar
,AnnDarrow
,AnnDarrow
,AnnForall
,AnnDot
data Constructor Declaration
ConDeclGADT | |
| |
ConDeclH98 | |
|
DataId name => Data (ConDecl name) Source # | |
OutputableBndrId name => Outputable (ConDecl name) Source # | |
= Located (ConDecl name) | May have |
Located data Constructor Declaration
type HsConDeclDetails name = HsConDetails (LBangType name) (Located [LConDeclField name]) Source #
Haskell data Constructor Declaration Details
hsConDeclArgTys :: HsConDeclDetails name -> [LBangType name] Source #
getConNames :: ConDecl name -> [Located name] Source #
getConDetails :: ConDecl name -> HsConDeclDetails name Source #
gadtDeclDetails :: LHsSigType name -> (HsConDeclDetails name, LHsType name, LHsContext name, [LHsTyVarBndr name]) Source #
Document comments
Documentation comment Declaration
docDeclDoc :: DocDecl -> HsDocString Source #
Deprecations
Warning pragma Declaration
Warning [Located name] WarningTxt |
Data name => Data (WarnDecl name) Source # | |
OutputableBndr name => Outputable (WarnDecl name) Source # | |
Warning pragma Declarations
Warnings | |
|
Data name => Data (WarnDecls name) Source # | |
OutputableBndr name => Outputable (WarnDecls name) Source # | |
type LWarnDecls name = Located (WarnDecls name) Source #
Located Warning Declarations
Annotations
Annotation Declaration
HsAnnotation SourceText (AnnProvenance name) (Located (HsExpr name)) |
DataId name => Data (AnnDecl name) Source # | |
OutputableBndrId name => Outputable (AnnDecl name) Source # | |
data AnnProvenance name Source #
Annotation Provenance
ValueAnnProvenance (Located name) | |
TypeAnnProvenance (Located name) | |
ModuleAnnProvenance |
Functor AnnProvenance Source # | |
Foldable AnnProvenance Source # | |
Traversable AnnProvenance Source # | |
Data name => Data (AnnProvenance name) Source # | |
annProvenanceName_maybe :: AnnProvenance name -> Maybe name Source #
Role annotations
data RoleAnnotDecl name Source #
Role Annotation Declaration
RoleAnnotDecl (Located name) [Located (Maybe Role)] |
Data name => Data (RoleAnnotDecl name) Source # | |
OutputableBndr name => Outputable (RoleAnnotDecl name) Source # | |
type LRoleAnnotDecl name = Located (RoleAnnotDecl name) Source #
Located Role Annotation Declaration
roleAnnotDeclName :: RoleAnnotDecl name -> name Source #
Injective type families
data FamilyResultSig name Source #
type Family Result Signature
NoSig | |
KindSig (LHsKind name) | |
TyVarSig (LHsTyVarBndr name) |
DataId name => Data (FamilyResultSig name) Source # | |
type LFamilyResultSig name = Located (FamilyResultSig name) Source #
Located type Family Result Signature
data InjectivityAnn name Source #
If the user supplied an injectivity annotation it is represented using InjectivityAnn. At the moment this is a single injectivity condition - see Note [Injectivity annotation]. `Located name` stores the LHS of injectivity condition. `[Located name]` stores the RHS of injectivity condition. Example:
type family Foo a b c = r | r -> a c where ...
This will be represented as "InjectivityAnn r
[a
, c
]"
InjectivityAnn (Located name) [Located name] |
Data name => Data (InjectivityAnn name) Source # | |
type LInjectivityAnn name = Located (InjectivityAnn name) Source #
Located Injectivity Annotation
resultVariableName :: FamilyResultSig a -> Maybe a Source #
Maybe return name of the result type variable
Grouping
HsGroup | |
|
DataId id => Data (HsGroup id) Source # | |
OutputableBndrId name => Outputable (HsGroup name) Source # | |
emptyRdrGroup :: HsGroup a Source #
emptyRnGroup :: HsGroup a Source #
hsGroupInstDecls :: HsGroup id -> [LInstDecl id] Source #