| Safe Haskell | None |
|---|
CLaSH.Core.TyCon
Description
Type Constructors in CoreHW
- data TyCon
- = AlgTyCon {
- tyConName :: TyConName
- tyConKind :: Kind
- tyConArity :: Int
- algTcRhs :: AlgTyConRhs
- | PrimTyCon {
- tyConName :: TyConName
- tyConKind :: Kind
- tyConArity :: Int
- primTyConRep :: PrimRep
- | SuperKindTyCon { }
- = AlgTyCon {
- type TyConName = Name TyCon
- data AlgTyConRhs
- data PrimRep
- mkKindTyCon :: TyConName -> Kind -> TyCon
- isTupleTyConLike :: TyCon -> Bool
- tyConDataCons :: TyCon -> [DataCon]
Documentation
Type Constructor
Constructors
| AlgTyCon | Algorithmic DataCons |
Fields
| |
| PrimTyCon | Primitive TyCons |
Fields
| |
| SuperKindTyCon | To close the loop on the type hierarchy |
data AlgTyConRhs Source
The RHS of an Algebraic Datatype
Instances
| Show AlgTyConRhs | |
| Rep AlgTyConRhs | |
| Alpha AlgTyConRhs | |
| (Sat (ctx0 [DataCon]), Sat (ctx0 DataCon), Sat (ctx0 ([TyName], Type))) => Rep1 ctx0 AlgTyConRhs | |
| Subst Term AlgTyConRhs | |
| Subst Type AlgTyConRhs |
Representations for primitive types
mkKindTyCon :: TyConName -> Kind -> TyConSource
Create a Kind out of a TyConName
isTupleTyConLike :: TyCon -> BoolSource
Does the TyCon look like a tuple TyCon
tyConDataCons :: TyCon -> [DataCon]Source
Get the DataCons belonging to a TyCon