Copyright | (C) 2012-2016 University of Twente 2021-2024 QBayLogic B.V. |
---|---|
License | BSD2 (see the file LICENSE) |
Maintainer | QBayLogic B.V. <devops@qbaylogic.com> |
Safe Haskell | None |
Language | Haskell2010 |
Type Constructors in CoreHW
Synopsis
- data TyCon
- = AlgTyCon { }
- | PromotedDataCon { }
- | FunTyCon { }
- | PrimTyCon { }
- type TyConName = Name TyCon
- type TyConMap = UniqMap TyCon
- data AlgTyConRhs
- mkKindTyCon :: TyConName -> Kind -> TyCon
- isTupleTyConLike :: TyConName -> Bool
- isPrimTc :: TyCon -> Bool
- isNewTypeTc :: TyCon -> Bool
- isPromotedDc :: TyCon -> Bool
- tyConDataCons :: TyCon -> [DataCon]
Documentation
Type Constructor
AlgTyCon | Algorithmic DataCons |
PromotedDataCon | |
FunTyCon | Function TyCons (e.g. type families) |
PrimTyCon | Primitive TyCons |
Instances
data AlgTyConRhs Source #
The RHS of an Algebraic Datatype
Instances
isTupleTyConLike :: TyConName -> Bool Source #
Does the TyCon look like a tuple TyCon
isNewTypeTc :: TyCon -> Bool Source #
isPromotedDc :: TyCon -> Bool Source #
tyConDataCons :: TyCon -> [DataCon] Source #
Get the DataCons belonging to a TyCon