ghc-7.10.2: The GHC API

Safe Haskell | None
Language | Haskell2010

TysWiredIn

Contents

- All wired in things
- Bool
- Ordering
- Char
- Double
- Float
- Int
- Word
- List
- Tuples
- Unit
- Kinds
- Parallel arrays
- Equality predicates

Description

This module is about types that can be defined in Haskell, but which must be wired into the compiler nonetheless. C.f module TysPrim

Synopsis

- wiredInTyCons :: [TyCon]
- isBuiltInOcc_maybe :: OccName -> Maybe Name
- boolTy :: Type
- boolTyCon :: TyCon
- boolTyCon_RDR :: RdrName
- boolTyConName :: Name
- trueDataCon :: DataCon
- trueDataConId :: Id
- true_RDR :: RdrName
- falseDataCon :: DataCon
- falseDataConId :: Id
- false_RDR :: RdrName
- promotedBoolTyCon :: TyCon
- promotedFalseDataCon :: TyCon
- promotedTrueDataCon :: TyCon
- ltDataCon :: DataCon
- ltDataConId :: Id
- eqDataCon :: DataCon
- eqDataConId :: Id
- gtDataCon :: DataCon
- gtDataConId :: Id
- promotedOrderingTyCon :: TyCon
- promotedLTDataCon :: TyCon
- promotedEQDataCon :: TyCon
- promotedGTDataCon :: TyCon
- charTyCon :: TyCon
- charDataCon :: DataCon
- charTyCon_RDR :: RdrName
- charTy :: Type
- stringTy :: Type
- charTyConName :: Name
- doubleTyCon :: TyCon
- doubleDataCon :: DataCon
- doubleTy :: Type
- doubleTyConName :: Name
- floatTyCon :: TyCon
- floatDataCon :: DataCon
- floatTy :: Type
- floatTyConName :: Name
- intTyCon :: TyCon
- intDataCon :: DataCon
- intTyCon_RDR :: RdrName
- intDataCon_RDR :: RdrName
- intTyConName :: Name
- intTy :: Type
- wordTyCon :: TyCon
- wordDataCon :: DataCon
- wordTyConName :: Name
- wordTy :: Type
- listTyCon :: TyCon
- nilDataCon :: DataCon
- nilDataConName :: Name
- consDataCon :: DataCon
- consDataConName :: Name
- listTyCon_RDR :: RdrName
- consDataCon_RDR :: RdrName
- listTyConName :: Name
- mkListTy :: Type -> Type
- mkPromotedListTy :: Type -> Type
- mkTupleTy :: TupleSort -> [Type] -> Type
- mkBoxedTupleTy :: [Type] -> Type
- tupleTyCon :: TupleSort -> Arity -> TyCon
- tupleCon :: TupleSort -> Arity -> DataCon
- promotedTupleTyCon :: TupleSort -> Arity -> TyCon
- promotedTupleDataCon :: TupleSort -> Arity -> TyCon
- unitTyCon :: TyCon
- unitDataCon :: DataCon
- unitDataConId :: Id
- pairTyCon :: TyCon
- unboxedUnitTyCon :: TyCon
- unboxedUnitDataCon :: DataCon
- unboxedSingletonTyCon :: TyCon
- unboxedSingletonDataCon :: DataCon
- unboxedPairTyCon :: TyCon
- unboxedPairDataCon :: DataCon
- unitTy :: Type
- typeNatKindCon :: TyCon
- typeNatKind :: Kind
- typeSymbolKindCon :: TyCon
- typeSymbolKind :: Kind
- mkPArrTy :: Type -> Type
- parrTyCon :: TyCon
- parrFakeCon :: Arity -> DataCon
- isPArrTyCon :: TyCon -> Bool
- isPArrFakeCon :: DataCon -> Bool
- parrTyCon_RDR :: RdrName
- parrTyConName :: Name
- eqTyCon_RDR :: RdrName
- eqTyCon :: TyCon
- eqTyConName :: Name
- eqBoxDataCon :: DataCon
- coercibleTyCon :: TyCon
- coercibleDataCon :: DataCon
- coercibleClass :: Class
- mkWiredInTyConName :: BuiltInSyntax -> Module -> FastString -> Unique -> TyCon -> Name

# All wired in things

wiredInTyCons :: [TyCon] Source

isBuiltInOcc_maybe :: OccName -> Maybe Name Source

# Bool

boolTy :: Type Source

boolTyCon :: TyCon Source

boolTyCon_RDR :: RdrName Source

boolTyConName :: Name Source

trueDataCon :: DataCon Source

trueDataConId :: Id Source

true_RDR :: RdrName Source

falseDataCon :: DataCon Source

falseDataConId :: Id Source

false_RDR :: RdrName Source

promotedBoolTyCon :: TyCon Source

promotedFalseDataCon :: TyCon Source

promotedTrueDataCon :: TyCon Source

# Ordering

ltDataCon :: DataCon Source

ltDataConId :: Id Source

eqDataCon :: DataCon Source

eqDataConId :: Id Source

gtDataCon :: DataCon Source

gtDataConId :: Id Source

promotedOrderingTyCon :: TyCon Source

promotedLTDataCon :: TyCon Source

promotedEQDataCon :: TyCon Source

promotedGTDataCon :: TyCon Source

# Char

charTyCon :: TyCon Source

charDataCon :: DataCon Source

charTyCon_RDR :: RdrName Source

charTy :: Type Source

stringTy :: Type Source

charTyConName :: Name Source

# Double

doubleTyCon :: TyCon Source

doubleDataCon :: DataCon Source

doubleTy :: Type Source

doubleTyConName :: Name Source

# Float

floatTyCon :: TyCon Source

floatDataCon :: DataCon Source

floatTy :: Type Source

floatTyConName :: Name Source

# Int

intTyCon :: TyCon Source

intDataCon :: DataCon Source

intTyCon_RDR :: RdrName Source

intDataCon_RDR :: RdrName Source

intTyConName :: Name Source

intTy :: Type Source

# Word

wordTyCon :: TyCon Source

wordDataCon :: DataCon Source

wordTyConName :: Name Source

wordTy :: Type Source

# List

listTyCon :: TyCon Source

nilDataCon :: DataCon Source

nilDataConName :: Name Source

consDataCon :: DataCon Source

consDataConName :: Name Source

listTyCon_RDR :: RdrName Source

consDataCon_RDR :: RdrName Source

listTyConName :: Name Source

mkListTy :: Type -> Type Source

mkPromotedListTy :: Type -> Type Source

# Tuples

mkTupleTy :: TupleSort -> [Type] -> Type Source

mkBoxedTupleTy :: [Type] -> Type Source

Build the type of a small tuple that holds the specified type of thing

tupleTyCon :: TupleSort -> Arity -> TyCon Source

tupleCon :: TupleSort -> Arity -> DataCon Source

promotedTupleTyCon :: TupleSort -> Arity -> TyCon Source

promotedTupleDataCon :: TupleSort -> Arity -> TyCon Source

unitTyCon :: TyCon Source

unitDataCon :: DataCon Source

unitDataConId :: Id Source

pairTyCon :: TyCon Source

unboxedUnitTyCon :: TyCon Source

unboxedUnitDataCon :: DataCon Source

unboxedSingletonTyCon :: TyCon Source

unboxedSingletonDataCon :: DataCon Source

unboxedPairTyCon :: TyCon Source

unboxedPairDataCon :: DataCon Source

# Unit

unitTy :: Type Source

# Kinds

typeNatKindCon :: TyCon Source

typeNatKind :: Kind Source

typeSymbolKindCon :: TyCon Source

typeSymbolKind :: Kind Source

# Parallel arrays

mkPArrTy :: Type -> Type Source

Construct a type representing the application of the parallel array constructor

parrTyCon :: TyCon Source

Represents the type constructor of parallel arrays

- This must match the definition in `PrelPArr`

NB: Although the constructor is given here, it will not be accessible in user code as it is not in the environment of any compiled module except `PrelPArr`.

parrFakeCon :: Arity -> DataCon Source

Fake array constructors

- These constructors are never really used to represent array values; however, they are very convenient during desugaring (and, in particular, in the pattern matching compiler) to treat array pattern just like yet another constructor pattern

isPArrTyCon :: TyCon -> Bool Source

Check whether a type constructor is the constructor for parallel arrays

isPArrFakeCon :: DataCon -> Bool Source

Checks whether a data constructor is a fake constructor for parallel arrays

parrTyCon_RDR :: RdrName Source

parrTyConName :: Name Source

# Equality predicates

eqTyCon_RDR :: RdrName Source

eqTyCon :: TyCon Source

eqTyConName :: Name Source

eqBoxDataCon :: DataCon Source

coercibleTyCon :: TyCon Source

coercibleDataCon :: DataCon Source

coercibleClass :: Class Source

mkWiredInTyConName :: BuiltInSyntax -> Module -> FastString -> Unique -> TyCon -> Name Source